Theme Support Forum

Support Forum for Free and Premium Themes. Premium Theme Forums are Private! Please log in first to see the Premium forums

Viewing 22 posts - 1 through 22 (of 22 total)

where is your Pro. Forum? issue with Function.php

Home Forums Misc. General Forums where is your Pro. Forum? issue with Function.php

  • #23647

    Saharita

    zenon

    Hi,

    I added the coded that you have provided in one of the topic for adding a new widget area in to my theme function.php but I got this error message: Parse error: syntax error, unexpected T_STRING in /home/jamla0/public_html/saharjavidtash.name/wp-content/themes/zenon/functions.php on line 298

    i have tried adding codes to this function file before too, but got the same error and had to upload the file via FTP as WP doesn’t let me to enter to the admin are.

    Can you advise me why i can not edit/save the theme function.php file?

    #23651

    Towfiq I.

    administrator

    paste the code of functions.php in a pastebin.com page and share the link.

    and can you access this forum:
    http://www.towfiqi.com/forums/forum/premium-theme-support/zenon-pro

    #23653

    Saharita

    zenon
    #23654

    Towfiq I.

    administrator

    I dont get any errors anywhere. can you remove this and see if its working or not:

    	register_sidebar(array(
    	'name' => __('Footer2 Widgets', 'zenon'),
    	'id' => 'foot2_sidebar',
    	'description' => __('Widget Area for the Footer', 'zenon'),
    	'before_widget' => '<li id="%1$s" class="widget %2$s"><div class="widget_wrap">',
    	'after_widget' => '</div>',
    	'before_title' => '<h3 class="widgettitle">',
    	'after_title' => '</h3>'
    	));

    and about the pro forum, can you access it?

    #23655

    Saharita

    zenon

    sure, i will try the code and will let you know if “working” or not.

    Yes, I was able to access the Pro. forum.

    Thank you for ur prompt reply and instructions.

    #23656

    Saharita

    zenon

    YEEEEY, it worked. I thank you for your advice.

    #23658

    Saharita

    zenon

    OOOOOps, now there is another isuue.

    here is my web: saharjavidtash.com

    a widget in the 2nd footer displays codes:
    < ?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer2 Widgets’) ) : ?>< ?php endif; ?>

    #23659

    Saharita

    zenon
    #23660

    Towfiq I.

    administrator

    1. your website isn’t loading.

    and remove this line from footer.php too:

    < ?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer2 Widgets’) ) : ?>< ?php endif; ?>

    #23661

    Saharita

    zenon

    just doesn’t show the 2nd footer:(

    http://saharjavidtash.name/

    #23663

    Towfiq I.

    administrator

    yes, since you removed the code from functions.php you cannot show the second footer.

    can you add this code back to your functions.php and see if the error still shows?

    	register_sidebar(array(
    	'name' => __('Footer2 Widgets', 'zenon'),
    	'id' => 'foot2_sidebar',
    	'description' => __('Widget Area for the Footer', 'zenon'),
    	'before_widget' => '<li id="%1$s" class="widget %2$s"><div class="widget_wrap">',
    	'after_widget' => '</div>',
    	'before_title' => '<h3 class="widgettitle">',
    	'after_title' => '</h3>'
    	));
    #23664

    Saharita

    zenon

    No, it doesn’t show the footer.

    #23667

    Towfiq I.

    administrator

    Add this to your footer.php too:

    < ?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer2 Widgets’) ) : ?>< ?php endif; ?>

    #23669

    Saharita

    zenon

    no, no the
    just a box displaying: < ?php if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘Footer2 Widgets’) ) : ?>< ?php endif; ?>

    #23690

    Towfiq I.

    administrator

    can you copy the code of footer.php and paste it via pastebin.com?

    #23718

    Saharita

    zenon
    #23794

    Saharita

    zenon

    Hi Towfiq,

    were you able to find a solution for my issue?

    Thanks

    #23814

    Towfiq I.

    administrator

    thats very odd. can you send me your site’s id/pass through the contact page from the bottom? I will check it out from the back-end of your site.

    #23817

    Saharita

    Sure, i will email it you ASAP.

    Thank you very much

    #23819

    Saharita

    just emailed to you your requested info. THX

    #23917

    Saharita

    Hi Towfiq,

    You fixed the issue with the 2nd footer for widgets (THX) but now there are two another issues with this footer. First issue is that there are two dots “.” in the footer that i can figure out how to remove them. The second issue is that in the footer, widgets stay under each other (vertically), they do not stay next to each other (horizontally).

    Could you plz advise me how to fix them?

    Thx in advance.

    #23918

    Towfiq I.

    administrator

    Add this to your stylesheet:

    /*FOOTER*/
    #footer_sec width:970px; float:left; background:#171717 border:1px solid #ececec; font-size:12px;padding-top:15px; padding-left:30px; margin-top:15px;}
    #footer_sec .widgets .widget a{}
    #footer_sec .widgets ul{ margin:0; padding:0;}
    #footer_sec .widgets .widget{ width:217px; float:left; margin-right:25px; list-style-type:none; margin-bottom:25px;}
    #footer_sec .widgets .widgettitle{color:#333; font-size:20px;}
    #footer_sec .widgets .widget ul{ margin:0; padding:0;}
    #footer_sec .widgets .widget ul li{ list-style-type:none; padding:6px 0;border-bottom-style:dashed; border-bottom-color:#ececec;border-width:1px;}
    #footer_sec.widgets .widget ul li a{text-decoration:none;}