A Sidebar is a theme feature introduced with Version 2.2. It's basicly a vertical column provided by a theme for displaying information other than the main content of the web page. Themes usually provide at least one sidebar at the left or right of the content. Sidebars usually contain widgets that ...
0
votes
2answers
18 views
Advice: Template structure - php blocks in sidebar or someting else?
I'm trying to create certain modulair blocks which I can add to multiple pages in Wordpress. But I use sidebar-[name].php files for this, what is the best practice for this? Should you add them to a ...
0
votes
3answers
24 views
get value from post to sidebar
I have the following div in my post,
<div class="my_calss" id="my_id">
my content
</div>
Here, my_id is different for each post.
I need to display my_id in sidebar into php code. ...
1
vote
2answers
39 views
Post-ID in url differs from $post->ID
I've got a page with a blogroll in the left column and a sidbar in the right one. When I try to retrieve the page-id inside of the sidebar like:
echo $post->ID;
echo get_the_ID();
The result is ...
0
votes
2answers
23 views
How to add banners in sidebar of my theme [duplicate]
I am new to word press. I need to add 2 banners in my right side bar. Could you help me?? How can I do it?? What is the code which I have to insert in a text widget? I am using zeesynergie theme. ...
0
votes
1answer
5 views
Variable not working in sidebar loop
I have variable working in the loop of my homepage, but when I try to use that line $variable = $post->post_title; $variable = str_replace( ' - ', '<br />' ,$variable); echo $variable; in ...
0
votes
1answer
23 views
is_active_sidebar() Always Returns False
I've never gotten is_active_sidebar() to work, no matter if there's widgets in the sidebar or not I always get false returned. Currently I'm creating a sidebar for each top level page:
...
0
votes
1answer
19 views
register_sidebar_widget is deprecated since version 2.8
I have an elderly WordPress theme that I am trying to bring back up to date. I am stuck on the following snippet...
if ( function_exists('register_sidebar_widget') )
...
0
votes
3answers
45 views
How to exclude a widget from showing up on a page?
I have a widget that appears on my sidebar throughout my website. I have a page where I don't want this widget to show. How would I go about doing this without installing a plugin and instead doing ...
0
votes
2answers
56 views
2 dynamic sidebars registered, not showing up
My intention is to have a left and right sidebar on each page. I've registered both of them, implemented my desired widgets, and yet something isn't quite right.
The left sidebar (sidebar(1)) loads ...
-1
votes
0answers
20 views
Why adsense not working in custom template page
I created a custom template page and add sidebar to it, I added google adsense to the widget sidebar using a shortcode.
The adsense working well in all categories and pages, but does not appear in ...
0
votes
1answer
25 views
Woocommerce product info in a sidebar?
I'm having a terrible time trying to figure this out. On the single product page in woocommerce, I need to add a sidebar and move the product "summary entry-summary" into that sidebar. Leaving just ...
0
votes
1answer
32 views
Sidebar does not display on blog page, but fine with static pages
Please help as I am loosing my mind with this issue.
I built my first really simple wordpress theme. http://www.designstest.co.uk/
For NEWS (blog) page I created a new template page-blog.php (based ...
-1
votes
1answer
27 views
Mystique theme: widgets on sidebar falling under the page content
I'm using the default two columns layout of the Mystique theme.
If I insert widgets into the main sidebar from the dashboard, instead of being showed aside in the page, they fall under the post (even ...
1
vote
1answer
28 views
How are Dynamic Sidebar Widgets rendered
I have been reading through the Wordpress Source, trying to get a better understanding of how dynamic sidebars are rendered.
However, I am hitting a sticking point...
894 | do_action( ...
0
votes
2answers
176 views
HowTo: Add Class to Sidebar Widget List-Items
The newest version of Bootstrap (v3.0) adds a new List Group component which has the following structure:
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
...