where is your Pro. Forum? issue with Function.php
Home › Forums › Misc. › General Forums › where is your Pro. Forum? issue with Function.php
-
#23647On July 24, 2013 at 3:38 am
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?
#23651On July 24, 2013 at 4:35 ampaste 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#23654On July 24, 2013 at 4:51 amI 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?
#23655On July 24, 2013 at 4:53 amsure, 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.
#23658On July 24, 2013 at 5:04 amOOOOOps, 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; ?>#23660On July 24, 2013 at 5:08 am1. 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; ?>
#23661On July 24, 2013 at 5:13 amjust doesn’t show the 2nd footer:(
#23663On July 24, 2013 at 5:20 amyes, 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>' ));
#23667On July 24, 2013 at 6:07 amAdd this to your footer.php too:
< ?php if ( !function_exists(âdynamic_sidebarâ) || !dynamic_sidebar(âFooter2 Widgetsâ) ) : ?>< ?php endif; ?>
#23690On July 24, 2013 at 8:46 amcan you copy the code of footer.php and paste it via pastebin.com?
#23794On July 24, 2013 at 11:49 pmHi Towfiq,
were you able to find a solution for my issue?
Thanks
#23814On July 25, 2013 at 4:42 amthats 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.
#23917
Saharita
On July 26, 2013 at 4:01 amHi 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.
#23918On July 26, 2013 at 4:08 amAdd 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;}