Is there a fix for this or should I revert to previous version?
]]>When we selected the sidebar page template nothing changed.
What is the functionality of this page template if it does not do what is intended?
I’ve read posts that recommend editing the single.php file but I don’t currently have a copy of it in the child theme and don’t know what else I can do.
It seems to me that this should be a feature that is incorporated into the theme design without needing further php editing.
Anyone know if there is a way for me to add a sidebar to her posts page without editing the single.php file?
Any help is GREATLY appreciated!
Cheers,
Ana
My problem is with a new page template that I created to help resolve a conflict between two plugins. The template, page-calendar.php, is supposed to use a the sidebar template, sidebar-calendar.php, but it is using the default sidebar template instead.
I’ve added the following code to functions.php.
register_sidebar(array(
'name' => 'Calendar Sidebar',
'id' => 'calendar',
'description' => 'These are widgets for the calendar page sidebar.',
'before_widget' => '<div id="%1$s" class="cal-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
the code in my sidebar template (sidebar-calendar.php) is as follows.
<aside id="right-sidebar" class="cf">
<?php if (is_active_sidebar('calendar')) {
dynamic_sidebar('calendar');
} ?>
</aside>
And the code that calls the sidebar from page-calendar.php is:
<?php get_sidebar('calendar'); ?>
I have another custom sidebar that works as advertised, but I can’t seem to track down the problem with this one. The page that is causing the problem as at vintnerscellarpdx.com/our-blog/events/wine-bar-calendar/.
I hope I have supplied enough information, please let me know if there are any questions.
Thanks,
Randy
I’ve added the following code to functions.php.
register_sidebar(array(
'name' => 'Calendar Sidebar',
'id' => 'calendar',
'description' => 'These are widgets for the calendar page sidebar.',
'before_widget' => '<div id="%1$s" class="cal-widget %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>'
));
the code in my sidebar template (sidebar-calendar.php) is as follows.
<aside id="right-sidebar" class="cf">
<?php if (is_active_sidebar('calendar')) {
dynamic_sidebar('calendar');
} ?>
</aside>
And the code that calls the sidebar from page-calendar.php is:
<?php get_sidebar('calendar'); ?>
I have another custom sidebar that works as advertised, but I can’t seem to track down the problem with this one. The page that is causing the problem as at .
I hope I have supplied enough information, please let me know if there are any questions.
Thanks,
Randy
Im using Twenty Eleven with a child theme.
I am trying to create a 2nd sidebar template where as this side bar i will manually add static images to it. I copied the sidebar-page.php file and renamed it so i can choose from which side bar i want for various pages, however when i use the standard sidebar template that works fine but when using my new template you can see there are issues with the page content over lapping onto the sidebar.
Here is a link: https://www.apicalmedia-webdesign.co.uk/blog/new-test/
The code i used in my new sidebar template is:
<?php
/**
* Template Name: Sidebar Template333
* Description: A Page Template that adds a sidebar to pages
*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
get_header(); ?>
<div id="primary">
<div id="content" role="main">
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', 'page' ); ?>
<?php comments_template( '', true ); ?>
<?php endwhile; // end of the loop. ?>
</div><!-- #content -->
</div><!-- #primary -->
<div id="secondary" class="widget-area" role="complementary">
<p>My Static Boxes</p>
<img src="/images/box1.png" width="240" height="160" />
</br></br>
<img src="/images/box2.png" width="240" height="160" />
</br></br>
<img src="/images/box3.png" width="240" height="160" />
</div><!-- #secondary .widget-area -->
<?php get_footer(); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button. Or better still – use a pastebin. As it stands, your posted code may now have been permanently damaged/corrupted by the forum’s parser.]
Thank you for any help you can provide me.
]]>what should I do to make this happen?
]]>When I use the Default Template on a page (which I am toggling by using the Template drop-down menu under Pages > Quick Edit), I don’t have this issue (I believe at some point I found a setting on my child theme which fixed this for the Default Template, but of course I don’t remember what it was…). I can’t seem to find any settings in style.css or any of the php files that allow me to adjust the white space above the title for the Sidebar Template.
Here are some images that illustrate what I’m trying to change (it’s the same page using the Sidebar Template vs the Default Template):
Sidebar Template – https://www.flickr.com/photos/22042186@N08/7590997200/
Default Template – https://www.flickr.com/photos/22042186@N08/7590997360/
The website is www.samanthadurante.com – right now I have the Default Template chosen, but I can switch it if it would help anyone who’s looking at this.
Any tips would be greatly appreciated! I am new to WordPress, so I can use all the help I can get. Thanks!
]]>I have created my own theme which works fine on my local server, but now I have installed on my site it is using a different sidebar file to that in the theme.
Strangely, it doesn’t appear to be using the one in the theme-compat folder either.
The file is called sidebar.php and I am using ‘get_sidebar()’ to call the file.
Is there a default setting I need to change?
Many thanks claire
]]>I am new to WordPress, but have blogged since 2006.
I am an experienced web designer. I feel like this is a stupid question…maybe the solution is right in front of me.
Is there a way to make my blog posts look like the “Sidebar Template”. My home page, the “category” pages and all “Pages” that I created use the “Sidebar Template”. I want this look to carry over to my individual post pages, so that my sidebar is on every page on my blog.
Any help would be appreciated. Thank you.
Sal
]]>article.intro .entry-content {
color: #111;
font-size: 14px;
padding: 1.625em 0 0.625em;
}
Which has been changed within the child theme’s style.css file
To make things consistent throughout the site I need to change the font size to 14px in the Sidebar Template too but cant for the life of me find this if anyone can help?!
My site is: https://bridgewater-test.info
Many, many thanks in advance!
Adam
]]>