Tagged Questions
-3
votes
0answers
15 views
.textwidget div has ridiculous width for some reason [closed]
I have custom made sidebars, and tried testing them, however main sidebar (on the right) doesn't look like it should do, I assume this is because .textwidget div generated by wordpres has width of ...
0
votes
2answers
41 views
How to edit contents of dynamic_sidebar()?
I know PHP well but I'm new to Wordpress. I got an incomplete Wordpress website. It has a static home page with an Aweber newsletter form. I tried digging into installed theme and in home.php I came ...
0
votes
1answer
53 views
Single template will not show sidebar/bottom-nav and footer
Im using the blankslate template theme and have a sidebar which i would like to use throughout the website.
On my sidebar on the homepage i have a widget called latest posts with the latest post ...
1
vote
2answers
64 views
How to check if searchform.php is being included as widget?
I'd like to put something like this in searchform.php:
<?php if($widget){ ?>
//load serach form for sidebar...
<?php }else{ ?>
//load different search form for page content (404 ...
0
votes
3answers
167 views
Dynamic Sidebars based on page name
I would like to do a dynamic sidebar for my WordPress site, so it would pull in the correct Sidebar template based on the page title of the page.
So if I had 10 sidebars all named like this:
Sidebar ...
0
votes
1answer
64 views
How can I use Page editor for two separate templates?
On some of my pages (not posts) in my Wordpress site, I need to include a sidebar that display s information relevant to the main content of the page the user is on. I can choose, using Edit Page in ...
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 ...
2
votes
1answer
794 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 ...
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 ...
1
vote
3answers
645 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 ...
0
votes
2answers
281 views
Best practice for including plugin output in a template without using shortcode?
I need your recommendation for the best practice here:
A custom post type I have created
needs a list of attachments at the
end of the post content.
I have created a series of functions that handle
...
1
vote
3answers
815 views
Best approach for loading a sidebar Only if the screen max-width is >900px?
I have been playing around with media queries quite a bit lately and I love the concept. It is so easy to display images or change div floats depending upon what the users screen max-width is.
I'm ...
1
vote
1answer
397 views
Toggle Sidebar Display
I'm developing a WordPress theme that allows users to toggle the visibility of the sidebars using Javascript in the same way that wikis allow users to show or hide a table of contents.
When a user ...
1
vote
1answer
935 views
How to have dynamic sidebar content per post
I am setting up a site for a client and have included a dynamic sidebar in the template for certain types of posts. I would like the client to be able to add a text widget to that sidebar for a post ...
0
votes
1answer
223 views
Correct way to add a block element to sidebar layout
First time experimenting with wordpress and looking for advice on the correct way to add a block of html to a sidebar. This doesn't seem like a custom widget to me as there is no functionality ...
4
votes
5answers
2k views
Different widgets on different page templates?
If I have a couple of different Page templates, how would I show a different collection of sidebar widgets for each of these templates? I'm using the Starkers theme as a starting point.