After reading the support ticket here https://www.ads-software.com/support/topic/multiple-copies-of-jquery-loading?replies=4, I found I was experiencing the same issue. I had narrowed the plugin down to specifically Bannerspace and Contact Form 7, and discovered the reason this is occuring, though I don’t know the solution.
It is true the theme deregisters the enqueued jquery script, the problem is that this doesn’t account for scripts that include jquery as a dependent script. So for example in contact form 7 view the following line of code.
file: contact-form-7/includes/controller.php line 196
wp_enqueue_script( 'contact-form-7',
wpcf7_plugin_url( 'includes/js/scripts.js' ),
array( 'jquery', 'jquery-form' ), WPCF7_VERSION, $in_footer );
Even though jquery has been deregistered, when wp sees that it is a dependent script in the enqueued contact-form-7 it re-enqueues jquery to be added. Thus we get both WP core’s version and H5BP’s version.
I have resolved this in Bannerspace by writing a plugin that deregisters the bannerspace actions, and then adds it scripts back in without the dependency. I am working on doing the same for contact-form-7, but its a pain to have to do this for any plugin that has this issue. Especially when declaring jquery as dependency is considered good practice, and many plugins will likely continue doing it.
Thoughts?
]]>I was customizing the Category Archive template when I had an issue – there was an extra </div> somewhere, messing up the page. A bit of digging revealed it was in the loop.php on line 171.
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<nav id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '← Older posts', 'boilerplate' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts →', 'boilerplate' ) ); ?></div>
</div><!-- #nav-below -->
<?php endif; ?>
See where it says <!-- #nav-below -->
? That should be </nav>
. Thought you should know.
‘m using the boilerplate theme, and I have a page i created i have just one sentence on it, and i’m using the default page style. I think it includes a side-bar, when I add a widget to the sidebar it shows up on the page, but what I don’t understand is why the side bar is taking up the entire width of the page, and the title of the page and the sentence I added are showing above the sidebar (or what I think is the side bar…. here’s a link https://mdala.org/development/test/
I’m new to PHP and WordPress so I’m really having a tough time trying to figure out how this is working. Any help in pointing me in the right direction would be great appreciated. Thanks.
]]>I used the menu option under appearance to add a top navigation level to my site. Now I want to add a footer menu, so I used the menu option under appearance to create a second menu, but I have no idea how to get it onto my site. Do I need to add a special line of code to my footer.php file? I’m new to WordPress so I’m kinda trying to figure this out as I go along. Do I need to use a widget? Any help would be appreciated!
]]>So, I inherited this site which uses a Boilerplate child theme. Thing is, that I have version 2.1.3 of the parent installed. Obviously, I need to update to 4.4.1 but that seems like a long way to go without expecting some hitches. Any obvious issues I should be watching for? Any insight or forewarning would be greatly appreciated.
]]>Can someone point me to an example of this theme successfully integrated with Twitter Bootstrap, Skeleton, Foundation, or similar responsive framework?
]]>I want to add a small simple jquery-script to my site.
I checked the “Site-specific JS” checkbox; but when I add my scripts in script-starter.js nothing happens. Even an alert-message for testing does not respond. Can someone tell me if I am doing something wrong in adding javascript?
Hi,
I can’t register any script using the wp_enqueue_script function. Scripts simply don’t appear in a website markup. I this is a feature not bug, could you tell me where can I disable it? Thanks.
I’m a happy and satisfied user of the Boilerplate theme, so first a short thank you for this no-nonsense theme I can easily work with.
However, in every child theme I cling onto it, I have a need of changing the sidebar files. You gave all the sidebar classes ‘xoxo’.
1. ‘xoxo’ reminds me of the way little Asian girls greet each other.
2. I cannot style specific sidebars when they’re all only named ‘xoxo’.
3. What does ‘xoxo’ stand for anyway? Is it a word like foo and bar?
I would like to see the template improved to have id’s for the sidebars. Now, I name them ‘#sidebar_primary’ and ‘#sidebar_secondary’ etc. to match the naming in the Widget section. Could you please add that?
Also, could the ‘xoxo’ be renamed to something like ‘sidebar’?
Kind regards,
Heidi Ulrich
I’ve used boilerplate_excerpt_length to change the default length. How can i create and excerpt with an alternative length for different pages?
]]>Hi,
somehow the boilerplate template is not showing excerpts but the whole post on the page I designated as my news page. my settings are set to show only excerpts but the posts are only cut short if I use a “more” tag in the post and not automatically. I think it has something to do with the code in loop.php on line 133 where it says “Only display excerpts for archives and search”. I don’t know how to change this behavior the correct way.
Thanks and greetings
]]>Just to say I updated Boilerplate and it appears broken, I tried running it as a theme and using a child them. It broke WP both times giving me a server error.
I re-uploaded the older one and everything is fine again. Should it be re-least yet?
]]>So I am using a boilerplate wordpress theme, and I have a few custom fields on a custom post type. I’m drawing a blank while trying to get those custom fields to appear on my categories page.
On the individual post pages I can simply use:
print_custom_field('overrideJobDesc');
However when I try the same trick in my categories.php page I get nothing. Can someone point me in the right direction?
<?php get_header(); ?>
<h1><?php
printf( __( 'Category Archives: %s', 'boilerplate' ), '' . single_cat_title( '', false ) . '' );
?></h1>
<?php
$category_description = category_description();
if ( ! empty( $category_description ) )
echo '' . $category_description . '';
/* Run the loop for the category page to output the posts.
* If you want to overload this in a child theme then include a file
* called loop-category.php and that will be used instead.
*/
get_template_part( 'loop', 'category' );
?>
<?php print_custom_field('overrideJobDesc'); ?>
]]>
Hello,
Let me start off by saying, this is my first time working with your theme and it is amazing! I am having just one problem.. I cannot get the ‘Crop thumbnail to exact dimensions’ to work on thumbnails. I even went into includes/media.php and tried to force it to crop.. same result.. any information you can offer would be great!
Thanks,
E.J.
]]>Hi
Has anybody had an issue with both the google copy of jquery and the local “fallback” copy of jquery loading? For some reason I see both copies loading, sometimes I also get another copy of it when I enable certain plugins as well.
I love this theme and have been using it on all of my projects for a while now. This is the one issue I’ve noticed.
thanks!
]]>Hi!
First up, love the Boilerplate theme. It’s my first time using it, but I’m liking it a lot.
I have a slightly uncommon problem. I have a client whose site I’m upgrading from HTML to WordPress. He’s an artist and very specific about how his site displays.
Up until now, he’s been using a series of hyphens, like this:
————————————————————–
to divide sections of his content. He likes using it and it’s something he can easily do himself when maintaining his content. (As opposed to using custom divs & borders, which he wouldn’t be able to maintain himself.)
However for some reason, when we put a series of hyphens like that into the Visual Editor, it looks great there, but then comes out completely different in the actual site.
Below are links to screenshots of exactly what I mean.
What it looks like in the visual editor:
https://smlacyart.com/studioescalier/wp-content/uploads/2013/02/weird-hyphens-visual-editor-view.png
What it looks like within the actual site:
https://smlacyart.com/studioescalier/wp-content/uploads/2013/02/weird-hyphens-screenshot-view.png
See how it reduces the number of hyphens and makes the hyphens display as much chunkier?
I can’t for the life of me figure out what styling in the CSS would control this feature. I’ve found a hack where I typed out the series of hyphens in Notepad++ and then pasted it into the HTML editor and it displays okay. But that’s not an ideal solution.
An example of that is here (with the not-nice hyphens further down):
https://smlacyart.com/studioescalier/contact/
If someone could point me in the right direction, I would be eternally grateful!
Thanks,
Sarah
Widgets added to primary and secondary widget areas appear in the footer, not the sidebar. I think that may be a bug.
I couldn’t find anything wrong with sidebar.php – where might the error lie?
Thanks for your feedback!
]]>The ajax event calendar isn’t showing when the [calendar] shortcode is used. I’m using the Boilerplate theme. It works when the twenty twelve theme is activated – the author of the plugin suggests contacting the author of the theme being used. It shows the [eventlist] successfully.
I have tried moving the jquery call into the head but with no success. The wp_head and wp_footer functions are both present as well. There are no javascript errors, or php errors in my log.
Any advice? Can’t think of how to begin tackling this issue.
Thanks! Great theme!
Dave
https://www.ads-software.com/extend/plugins/ajax-event-calendar/
]]>This is bizarre to me, but I have created a child theme of Boilerplate and when activated, the search functionality doesn’t work, just returns all posts regardless of the search term entered.
I didn’t change anything having to do with the search that I can think of. If I activate the Boilerplate theme, it works, if I activate my child theme based on Boilerplate, it behaves as described above.
Tried deactivating all plugins and same result. It’s driving me nuts… any ideas?
]]>Im trying to edit the layout of the comments form on my wordpress site. Which file would I have to edit to do this. Basically all I want to do is move the <span class=”required”>*</span> inside the closing label tag.
Cheers.
]]>Hello,
Many of the functions declared in functions.php check to see if they have been declared, but many do not. In a future release, could you please include this (simple) functionality?
My specific example is that I use an SEO plugin to generate the page title, and the boilerplate_filter_wp_title always interferes. I’ve tried having the remove filter function in my child functions.php…but it doesn’t work (specific code below).
remove_filter(‘wp_title’, ‘boilerplate_filter_wp_title’);
I have to modify the Parent Theme with each update so that my own function declaration can override the functionality you built.
]]>Hi I have just started doing a new site with this theme and I just love it, nice work – thank you Aaron.
But am getting an error :
in firebug console I am seeing this error –
“NetworkError: 404 Not Found – https://www.mysite.co.uk/wp-content/themes/boilerplatejs/script.js”
I have looked at the admin settings page and it shows the code correct there, but the entry for jQuery shows the same missing forward slash.
Regards
Tim Coupland
]]>As the title says ??
Just want to say thank you for the time and effort that has gone into making this theme!
It save me and other people who build themes on a regular basis a lot of time! ??
Great stuff.
]]>Hey,
First off, great work on the boilerplate theme. I am really enjoying it. I have come across some trouble when adding plugins and the script-starter.js. I believe the issue is that the jquery lib itself is added after the plugins.js/script-starter.js and I was hoping to get some clarification how to move the script before those.
I am still new to wordpress and I am getting confused with the add_action()
function that is being used for this.
Any help would be great!
]]>I’ve been using tanzaku theme before. With this theme (I believe as with others) to add a script I had to do it in the before the </head>
tag in header.php . This way (for example):
<script type="text/javascript">
jQuery.noConflict();
(function($){
$(function(){
$('.whatever').css("display","none");
});
});
</script>
But I can’t figure out how to make it with Boilerplate theme.
What am I doing wrong?
Thanks in advance!
Hi, great theme! my fav blank theme so far.
I’m unable to change the_excerpt()’s read more link by using a child theme. This theme has it set to read Continue reading with a special character. I don’t want to edit the boilerplate parent them files.
I’ve copied and changed the function names of the code in functions.php from the boilerplate theme into my own child themes functions.php
I’ve also added
remove_filter( ‘get_the_excerpt’, ‘boilerplate_custom_excerpt_more’ );
remove_filter( ‘excerpt_more’, ‘boilerplate_auto_excerpt_more’ );
But I’m still seeing the boilerplate themes continue reading links.
I’m new to child themes and have done some reading but may have missed something. I’d greatly appreciate any thoughts on this.
Thanks!
Brittney