The sidebar tag has no wiki summary.
0
votes
1answer
197 views
Sidebar widget not displaying after simple code update.
I registered a sidebar widget, then modified the registration which included changing the registered name of the widget. Now the widget does not show at all. Below are the steps I took.
I registered ...
0
votes
2answers
40 views
Custom /Page/2/ Template Only
Is there a method of doing this? Can I use PHP to say if(URL=page/2/) { } or something like that within my template?
Essentially, I want an ad to appear in my sidebar when a user clicks 'Older ...
0
votes
2answers
237 views
Don't display a sidebar widget when on a specific page
I am trying to stop latest blog items from displaying in the blog section of my site. I have used the following code:
<?php if ( is_page('blog') ) { ?>
<h2>Don't display ...
0
votes
2answers
404 views
Differentiate Between Parent & Child Categories
So I'm working with a non-wordpress theme called "Misty" and it uses this code to pull categories:
<li class="sidebox">
<h3><?php _e('Categories','ml'); ?></h3>
<ul ...
0
votes
1answer
278 views
Multiple, Dynamic, Sidebars Problem - First Sidebar not working properly
This is my function:
function ec_register_sidebars() {
register_sidebars( 3,
array(
'name' => 'Sidebar %d',
'id' => "sidebar-$i",
'before_widget' => '<li id="%1$s" ...
0
votes
2answers
344 views
How can I hard code my sidebar?
I am building a child theme based on Thematic.
Rather than use widgets, I would like to hard code my sidebar but I can't figure out how to do this.
Any help appreciated!
Thanks
0
votes
1answer
89 views
Print_r displaying two different post->ID if placed in sidebar or single.php
My website is displaying, if print_r, two different ID for the same post. If i ask:
<?php echo $post->ID;?>
in the single.php it gives me a number. If i do the same thing in the sidebar it ...
0
votes
1answer
252 views
links to Media Library content in sidebar per page
I have a bunch of PDF files in my Media Library and I want to show the relevant ones on a per-page basis in the sidebar. So on the 'About Cats' page, I want ILoveCats.pdf and cat-food.pdf from the ...
0
votes
2answers
1k views
Changing $before_widget for certain widgets
So I'm working on designing a Wordpress theme with lots of extra widgets. The ones I have added are in separate files, and called in the functions.php I have lots of css on the widgets themselves and ...
0
votes
1answer
250 views
Upgraded to 3.3, My Widgets Disappeared
I upgraded to 3.3 an my widgets went bye-bye. Here's the code I'm using... anybody else having this problem?
This code worked perfectly fine for me before the upgrade.
<!-- Enable Widgets ...
0
votes
4answers
291 views
Are widgets meant to be used outside of sidebars?
Are widgets meant to be used outside of sidebars?
My case: I have this html block which I want to use every time I display a post with category of "Story". I was going to make a widget to reduce ...
0
votes
1answer
131 views
Why is registering a sidebar for each page causing my sidebars to reset?
I have the following code in my functions.php
if ( function_exists('register_sidebars') ){
$pages=get_pages();
foreach($pages as $page){
...
0
votes
1answer
126 views
Post X of Y in single.php / sidebar.php
Is there a way of putting "Post X of Y" into my sidebar? I think I can only show it when it is a single blog post (something like checking if the content is_single) but I want to be able to see which ...
1
vote
2answers
169 views
Excluding specific widgets from default sidebar class
I have two sidebars using the register_sidebars function that display each widget as a list item with a class of .box:
<?php if(function_exists('register_sidebars')){
register_sidebars(2, array(
...
2
votes
2answers
90 views
How could a Widget behave differently depending on sidebar
if sitting on sidebar-1, I need my widget to behave differently than if it were on sidebar-2. How can i detect the sidebar it is sitting on from within the widget() function?
The widget contains a ...
0
votes
1answer
151 views
Multiple loops breaking side bar
Trying to put a bunch of loops in the side bar using WP_query.
<div id="FL-pest-libray-sidebar">
<?php $category_query_string = new WP_Query(array( 'post_type' => 'page' , ...
0
votes
1answer
128 views
Dynamic Sidebar and XHTML Validity?
My question is concerning dynamic sidebars and wrapping the dynamic sidebar code in the <ul> tag.
When I have widgets/dynamic sidebar enabled do not add widgets to the sidebar, and do not wrap ...
0
votes
5answers
159 views
Resizing Picture
I'm new to WP and am not sure how to re-size a picture.
I want to scale down the pic of the guy on this page:
http://www.millermusiclessons.com/
If you view the page source and find the source of ...
0
votes
2answers
82 views
How to Catch Last Widget box From Same Widget Area?
is there any Way to Catch Last widget box or div from same widget area?? i mean i have 4 widgets in footer widget area but due to design issue my 3rd widget box style+width is different.so i want to ...
0
votes
1answer
36 views
Creating a blog on my companies new website using Wordpress but I have sidebar issues
As said in the title, I am creating a blog on my companies new website using Wordpress but I have sidebar issues.
The website is only in production phase at the moment.
The Link is so you can see ...
0
votes
1answer
713 views
How do i make a sidebar background color? [closed]
With the 20-11 theme i would like to make the sidebar one long color. I have no idea how long my page are and i need the sidebar height to be the same as the post height. Right now when i do ...
2
votes
2answers
409 views
how can I remove the sidebar from my wp homepage [closed]
What's the best practice when it comes to removing the sidebar on the wordpress homepage? I'm using wp Version 3.2.1 and Skeleton Child Theme 1.6
0
votes
2answers
88 views
Is there a simple way to have a new sidebar for each page?
I am the programmer on my small dev team, along with the content editor and designer. My colleagues want to be able to add a different sidebar to each new page they make without having to monkey with ...
0
votes
2answers
60 views
How do i replace the sidebar to use pages instead of blogs?
I want to use wordpress as a CMS and not as a blog. I am using the default twentyeleven theme and i would like to remove 'archive' (the blog ToC) and 'Meta' (login) and replace it with a sidebar seen ...
0
votes
1answer
211 views
page menu in single.php [closed]
Currently I am displaying posts based on category on a page, this page has custom side menu, which lists all the news articles, once a user clicks on the news title it takes it to that post display ...
1
vote
1answer
141 views
Sidebar loop - Thematic Framework
I'm trying to add a sidebar loop to list 3 news post.
I'm using thematic framework and since I don't find any hook to use I first write this function in functions.php
function sideloop(){
...
0
votes
2answers
475 views
How to exclude categories from a sidebar with active widgets in it?
Is there a way to exclude certain categories from a widgetised sidebar? I've got categories that are associated with custom post types and ones associated with my blog - I don't want to display the ...
2
votes
1answer
799 views
Make “sidebar template” the default template for new pages
On Twenty Eleven or on its child themes the default template for new pages is a template with no sidebar. I don't know why this is like this; it seems to me that the designers of Wordpress are still ...
0
votes
1answer
190 views
Display smilies in Sidebar, too?
I want the smilies to be generated in my sidebar (where it shows the recent posts, comments etc.) and not being displayed as text only.
I've been searching through the Wordpress Codex, Google and ...
1
vote
2answers
441 views
Why does the TwentyTen Theme sidebar <ul> have a class called 'xoxo'?
Why is the CSS class called 'xoxo'? What does it mean?
1
vote
3answers
698 views
change sidebar or just widgets for 2 specific post type single posts
I would like to show a different sidebar for 2 specific posts(same custom post type). I understand how to do this using separate templates for different pages, but I want to have it all happen in the ...
0
votes
1answer
174 views
activate custom sidebar widgets
Hey guys I'm trying to activate a sidebar for wp widgets.
So my HTML looks like this:
<aside id="leftSidebar">
<section>
<h3></h3>
<div ...
0
votes
1answer
182 views
Disappearing Widget Text area
I recently encountered a strange thing for the first time with Wordpress...all of my text boxes in every widget sidebar disappeared! Other widgets are still there. Has this happened to anyone else? I ...
0
votes
2answers
71 views
Sidebar not displaying on custom-page.php
Ok, I registered a new sidebar and have added some functionality to my theme so you can choose which sidebar to display from the back-end (using meta fields). It's working on all pages, except on a ...
1
vote
2answers
3k views
Display a specific dynamic sidebar widgets on a specific page
I have had a wordpress site handed off to me halfway through completion. It's been at least a year since I last used wordpress and there are a lot of things I'm finding different. The way I am used to ...
0
votes
1answer
214 views
Select a Sidebar from Page Creation
I'm building a WP site that needs to have the ability for unique widgets on a per-section basis. I've built out the page structure of the site, then built the sidebar structure of the site. It goes ...
2
votes
2answers
2k views
Give Editor Access To Sidebar
I want to give the Editor Role access to editing the sidebar and it's contents. I have a text widget in there and in order to edit this text widget the user needs to be an admin - this sucks. How do I ...
1
vote
3answers
646 views
if statement in sidebar.php checking page id or template or title
I have the following code in my sidebar.php file:
<ul class="list-posts">
<?php
$lastposts = get_posts('numberposts=5&orderby=date&cat=-52');
foreach($lastposts ...
2
votes
1answer
641 views
Duplicate and alter sidebar for Twenty Eleven
I'm trying to create own template including submenu instead of the regular sidebar in Twenty Eleven.
Although I manage to create and select my new template the page ends up with bad CSS.
Here is ...
0
votes
1answer
318 views
how to add the same Widget twice to a sidebar?
I have a sidebar and would like to fill it like this:
[Text]
[Some other Widget]
[Text]
but I can add the Text widget only once to the Sidebar. What can I do to be able to add it more than once?
14
votes
2answers
2k views
Programmatically add widgets to sidebars
I would like to programmatically add widgets to my two sidebars that I've got. I couldn't find any official way of doing it?
I started looking in the database. I've found that it's the ...
1
vote
1answer
2k views
Get custom field values into the sidebar/widget?
I haven't seen this done, but I want to return the custom field values outside of the loop in the sidebar.
Is there a plugin, or another way to achieve this?
thanks!
0
votes
1answer
52 views
Is it possible to display my theme sidebar in wordpress admin?
I'm trying to create sidebar in my wordpress admin. This is because I'm trying to make my wordpress admin look like my front end.
My front end theme has sidebar in the right side. So i would like to ...
0
votes
4answers
752 views
Display Custom Taxonomy in Sidebar in Two Columns
I have a custom post type (photos) with a custom taxonomy (categories) and I'd like to display the taxonomy list in my sidebar in two columns. I have a modified snippet that I found elsewhere to do ...
0
votes
1answer
832 views
Display X images from a gallery in the sidebar
I've been hunting around for a day for this answer and thought I should turn to StackExchange in the hopes someone has an aswer.
My goal is to display X images (for example, 4) in the sidebar of this ...
0
votes
1answer
240 views
How to attach sidebar to shortcode's output?
I have one shortcode that should be always next to the sidebar:
// [shortcode] otuput | default sidebar
My theme allows me to set different sidebars for each page. So I have sidebars on a few ...
0
votes
2answers
51 views
custom filed from post in the side bar
I have a custom field in my post called fb_name. I need to be able to get that field name outside of the loop in my sidebar. How can I accomplish this?
0
votes
1answer
184 views
Sidebar missing from Homepage
The home page displays the sidebar below the rest of all the latest posts, leaving a vacant sidebar area for the majority of the (long) page. The sidebar displays fine on any single post.
My ...
1
vote
3answers
726 views
How to show my sidebar in specific page only?
I would like to show a plugin in a specific page's sidebar only.
For Example:
I have the pages like ..
home
about us
sub page 1
sub page 2
sub page 3
sub page 4
UPdate:
i want to show, ...
2
votes
1answer
758 views
How to show post(excerpt) from specific category on wp page?
I need this on 3 pages, all 3 from different categories, and then to show several post excerpts from all 3 categories in sidebar of home page.