Quick: Hardcoding sidebar.php while maintaining text widgets
-
Hello,
I want to add the below code to my sidebar.php by hardcoding it instead of adding a text widget because the formatting of my text widgets is different.
<table border="0" cellspacing="0" cellpadding="0"><tr><td align="center"><script type="text/javascript" src="https://www.worldtimeserver.com/clocks/embed.js"></script><script type="text/javascript" language="JavaScript">objGB = new Object;objGB.wtsclock = "wtsclock024.swf";objGB.color = "c01800";objGB.wtsid = "GB";objGB.width = 175;objGB.height = 175;objGB.wmode = "transparent";showClock(objGB);</script></td></tr><tr><td align="center"><h2>London</h2></td></tr></table>
My current sidebar.php is:
<ul id="sidebarleft"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar(1) ) : else : ?> <li id="pages"><?php _e('<h2>Pages</h2>'); ?> <ul> <?php wp_list_pages('sort_column=menu_order&title_li='); ?> </ul> </li> <li id="categories"><?php _e('<h2>Categories</h2>'); ?> <ul> <?php wp_list_cats(''); ?> </ul> </li> <li id="archives"><?php _e('<h2>Archives</h2>'); ?> <ul> <?php wp_get_archives('type=monthly'); ?> </ul> </li> <?php endif; ?> </ul>
Now I have no idea about php so what modifications would I need to make for that code to be displayed at the end of the sidebar widgets while it’s hard coded AND for the widgets in the sidebar to be displayed as well?
I would appreciate some help! Thanks in advance :).
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Quick: Hardcoding sidebar.php while maintaining text widgets’ is closed to new replies.