Hello,
When I try to integrate ‘navbar-collapse’ into my WP theme (a theme that I built from scratch), I noticed it is not visible. I checked in the code inspector and I saw there is a class .collapse, coming from boostrap.min.css which is doing this. .collapse {
display: none;
}
When I uncheck this class the nav becomes visible.
I don’t want to modify the bootstrap.css structure by eliminating the .collapse class. I tried to set up an !important rule in my custom css to make the nav visible, I even tried an online rule but nothing works. That class seems to go above all. It might be something related to WP, but as I am quite new in wordpress theming I really don’t know what I can do.
I’ve never faced this problem before, anyone can help me please?
Thanks
Hi hope you can help. I am using the radix starter theme and I am trying to add a child theme. In functions.php I have this code
`<?php
add_action( ‘wp_enqueue_scripts’, ‘enqueue_parent_styles’ );
function enqueue_parent_styles() {
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/style.css’ );
wp_enqueue_style( ‘parent-style’, get_template_directory_uri().’/includes/css/bootstrap.min.css’ );
}
It seems to load the style.css file but it is not loading the bootstrap.css or maybe the bootstrap java script file. Do I need to add the uri for the javascript file?
I have tried to add this wp_enqueue_script(‘parent-style’, get_stylesheet_directory_uri().’/includes/js/bootstrap.min.js’);
I can tell it is not working as the navabar is not working with regards to mobile toggle etc.
Hope you can help thanks
]]>Hi,
How do I specify page templates for the various pages in my site? For example, I want my single blog post page to use “index.php” and I want my About Us page to use “about.php”. How can I set those parameters?
Using Bootstrap 3.
Many thanks for your help!
]]>Hi,
I’m a somewhat experienced HTML and WP user, but completely new to Bootstrap. I have inherited a site done by others and want to add two items: 1) a blog listings page that shows a list of blog post excerpts and 2) a blog post page. I’m unsure how to start this process and would appreciate guidance.
When I add a new page called “Blog” and specify it as a “Posts Page”, the resulting page shows the content of my two test blog posts. It does not show post titles, dates, authors, etc. How do I modify this page to add these missing items and only show excerpts?
Live site link
Many thanks for your help,
Daryl
Ever since switching to a child theme using The Bootstrap, my error log has been flooded with the following PHP warnings for the-bootstrap-image-meta-widget.php
Any chance you have a fix for this file?
Here are the error messages I’m getting:
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 59
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘created_timestamp’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 59
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘width’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 65
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘height’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 65
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 67
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘aperture’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 67
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 72
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘focal_length’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 72
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 77
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘iso’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 77
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 82
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘shutter_speed’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 82
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘image_meta’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 101
[27-Jun-2015 11:33:24 UTC] PHP Warning: Illegal string offset ‘camera’ in [full path]/public_html/wp-content/themes/the-bootstrap/inc/the-bootstrap-image-meta-widget.php on line 101
Hi
When I view my webpage on a mobile device (width < 768px) the left sidebar is pushed down under the page content. The sidebar contains the most important navigation of the page, so I would prefer the sidebar to push above the page content instead. How can I fix this? I have tried to locate css code to do this, but without any luck yet. Can it be that I have to re-arrange the .php page template?.
Any help is very appreciated. Here is a link to the webpage https://www.krintel.com
Best Regards
Christian
I have created a child theme from bootstrap. I have a page that I want to control the handling and formatting of, so I have created a page-212.php file in the both the theme and child theme directory. It is not being picked up, rather the page.php in the parent is being used. I did take a copy of page and add to the child, when it is present, the child is being used. I am testing this on my desktop (WAMP) system and would appreciate any guidance.
Ultimately, I would like to move away from the page number (212), and move to the slug, but since its a child page, I wasn’t sure if the page would be referenced as ‘page-events-brewer.php’ or ‘page-brewer.php’.
]]>I created a gallery post with 15 photos, but the carousel only displays the first ten. After that it starts over and continues cycling, showing only the first ten photos. When I view the gallery post on my site, the caption says the gallery contains 15 photos. If I click on one of the photos in the carousel, all 15 photos are displayed in column format down the page, as expected. Are you limited to ten photos in a carousel?
]]>Hi,
I need help in making website responsive we have used The Bootstrap theme.
But we are surprised to see that why our theme is not responsive sometimes even navigation doesnot appears.
Please help me fix this issue my client needs to be delivered as soon as possible.
It will be great if u help me fix this.
Here is the link to my website:
Thank you,
—
Rashmi Reddy
on mobile a few letters are cut off on the right hand side of the main home page body text.
i think that shifting the whole body text to the left would fix this.
please tell me how to shift the body text over a little thereby reducing how far it goes to the right.
i am a novice and would need step by step guidance please!
thanks.
mat
version:
wp-bootstrapVersion: 2.1
How would I display the Last Updated Date and time of my pages?
]]>Using the custom post types the single?
my web www . edizzz . com
I would like to remove the .page-header (title and spacing) from a specific page using css but I am unable to target the page.
I tried using the following:
.page-id-1304 .page-header {display:none;}
Thank you!
]]>Hi!
I am trying to change the placeholder text of the search form in the navbar. I’ve looked around in the files, and it looks like the key is a function called the_bootstrap_navbar_searchform.
Could someone tell me where I can find the code so that I can do the edits. I am going to keep looking, but this is taking me longer than it should.
Thanks!
]]>I am trying to remove the “Posted On” and “Posted In” lines from all of my posts.
My site is pottytrain101.c0m
I have looked everywhere and cannot find the answer. I have found some posts on the subject but they are a little above my head. Any help would be appreciated.
Thanks!
]]>I’m working on a child theme of Bootstrap for a site that uses Woocommerce. I’ve made the necessary adjustments to my functions and template to make the theme WC “compatible,” but I’ve found there’s a problem when it comes to comments/reviews on product pages. Here’s a screenshot:
I see the functions responsible for the comments form in the Bootstrap functions.php file, but I’m having trouble figuring out how exactly it’s interacting with WooCommerce reviews.
Has anybody else run into this? Thanks in advance.
]]>I have the sidebar on the right displaying widgets. When I reduce the size of my browser window to see how it collapses at smaller screen size, the sidebar jumps down to the bottom, creating the single-column layout as expected, but it does it too soon, while there is more than enough horizontal room. As I continue to shrink the window, it jumps back up to the right side. This repeats about 2 or 3 times before everything finally falls into single column and stays that way around 700px.
I’ve tried narrowing the size of sidebar and main content, but allowing more horizontal space does not change the broken responsiveness. Any help would be greatly appreciated!
]]>Thank you for an awesome theme!
I have created my own custom theme from The Bootstrap, and it works great except I can’t figure out why the latest post to the blog’s image is not responsive. It appears that all previous images have been added the same way, with the same attributes, so I’m not sure what to look to fix this.
The site URL = vermontfurnitureblog.com
Any help or guidance would be much appreciated… thanks!
]]>Adding my suggested fix to brianlmerritt’s solution for on-hover menu instead of on-click:
I had a problem with 2nd level menus opening without hovering on the direct parent.
brianlmerritt suggests:
.sidebar-nav {
padding: 9px 0;
}
.dropdown-menu .sub-menu {
left: 100%;
position: absolute;
top: 0;
visibility: hidden;
margin-top: -1px;
}
.dropdown-menu li:hover .sub-menu {
visibility: visible;
}
.dropdown:hover .dropdown-menu {
display: block;
}
.nav-tabs .dropdown-menu, .nav-pills .dropdown-menu, .navbar .dropdown-menu {
margin-top: 0;
}
.navbar .sub-menu:before {
border-bottom: 7px solid transparent;
border-left: none;
border-right: 7px solid rgba(0, 0, 0, 0.2);
border-top: 7px solid transparent;
left: -7px;
top: 10px;
}
.navbar .sub-menu:after {
border-top: 6px solid transparent;
border-left: none;
border-right: 6px solid #fff;
border-bottom: 6px solid transparent;
left: 10px;
top: 11px;
left: -6px;
}
My fix is changing:
.dropdown:hover .dropdown-menu {
display: block;
}
to
.dropdown:hover>.dropdown-menu {
display: block;
}
hope this helps.
]]>When using your (excellent) theme, if I click on Appearance | Themes |Customize I get this Javascript exception (below) which prevents that UI from working.
My site is https://www.ibeck.com and I’m an ROR developer so I love Bootstrap, naturally.
The exception doesn’t happen with any of the default themes so I’m suspecting an integration issue.
But, what’s odd is that I don’t get the error running locally on Mac OSX with PHP 5.4.17, but I do get it running on my Linux Box with PHP 5.3.16. I’m using identical databases and code. Alas, no clues in the PHP log.
TypeError: 'undefined' is not a constructor (evaluating 'new wp.Uploader(this.uploader)')
readyload-scripts.php:2:2580
readyload-scripts.php:2:3355
(anonymous function)load-scripts.php:2:821
nload-scripts.php:2:29308
fireWithload-scripts.php:2:30073
(anonymous function)load-scripts.php:1:7570
nload-scripts.php:2:29308
addload-scripts.php:2:29519
whenload-scripts.php:1:3831
instanceload-scripts.php:1:2879
fload-scripts.php:1:649
initializeload-scripts.php:2:668
Classload-scripts.php:1:700
(anonymous function)load-scripts.php:1:299
(anonymous function)load-scripts.php:1:299
(anonymous function)load-scripts.php:1:299
(anonymous function)load-scripts.php:2:20526
eachload-scripts.php:2:18119
(anonymous function)load-scripts.php:2:10867
nload-scripts.php:2:29308
fireWithload-scripts.php:2:30073
readyload-scripts.php:2:16008
Bload-scripts.php:2:20580
Main Frame
]]>
By default The Bootstrap Displays on the home page (created by index.php) for every post the date, the author, and “add comment”. I belief this is done in /partials/content by the following lines:
<div class="entry-meta">
<?php the_bootstrap_posted_on(); ?>
</div><!-- .entry-meta -->
But I can’t find the function “the_bootstrap_posted_on . So how can I change the display of metadata for posts ?
Thx
]]>Hi,
We are using the-bootstrap and are having an issue where code is inserted into the page in the footer area by wp_footer() call which has a JS error.
This is the code that gets inserted:
if (jQuery("ul (li.page_item):has(ul.children)").length > 0) {
jQuery("ul (li.page_item):has(ul.children)").hover(function () {
jQuery(this).children("a").removeAttr('href');
jQuery(this).children("a").css('cursor', 'default');
jQuery(this).children("a").click(function () {
return false;
});
});
}
else if (jQuery("ul (li.menu-item):has(ul.sub-menu)").length > 0) {
jQuery("ul (li.menu-item):has(ul.sub-menu)").hover(function () {
jQuery(this).children("a").removeAttr('href');
jQuery(this).children("a").css('cursor', 'default');
jQuery(this).children("a").click(function () {
return false;
});
});
}
If I comment out wp_footer() in footer.php, then this code goes away.
When that code is in the template we get the following JS error:
Error: Syntax error, unrecognized expression: ul (li.page_item):has(ul.children)
Does anyone know why this code is being inserted, by what and where?
Thank you.
]]>The documentation/example links given on your website that point to Github pages, https://en.wp.obenland.it/the-bootstrap/, are broken. I’m trying to find information on how the bootstrap classes are integrated with this theme and some examples, particularly in formatting images.
Thanks.
]]>I was wondering if or when this nice theme will be updated for the new Bootstrap version 3?
Or is it possible I could do this myself?
I am creating a child theme based on The Bootstrap theme (2.0.1) but I cannot get the glyphicons to show up.
This code does not work :s
<span class="glyphicon glyphicon-search"></span>
How can I get these to work??
]]>Hello Friend, Could Help? I would like to Use Excerpts in My Home Automatica so, can you tell me how to do this without having to use the editor and use the “more” tag I’m currently using this page to open the Home – What you need to do to open only in excerpts, could help me with this code? Thank you, and congratulations on your theme, here bo Brazil is a success.
Codigo:
<?php
/** content-aside.php
*
* The template for displaying posts in the Aside Post Format on index and archive pages
*
* Learn more: https://codex.www.ads-software.com/Post_Formats
*
* @author Konstantin Obenland
* @package The Bootstrap
* @since 1.0 - 07.02.2012
*/
tha_entry_before(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php tha_entry_top(); ?>
<header class="page-header">
<hgroup>
<?php the_title( '<h2 class="entry-title"><a href="' . get_permalink() .'" title="' . sprintf( esc_attr__( 'Permalink to %s', 'the-bootstrap' ), the_title_attribute( 'echo=0' ) ) . '" rel="bookmark">', '</a></h2>' ); ?>
<h3 class="entry-format"><?php echo get_post_format_string( get_post_format() ); ?></h3>
</hgroup>
</header><!-- .entry-header -->
<?php if ( is_search() ) : // Only display Excerpts for Search ?>
<div class="entry-summary clearfix">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php else : ?>
<div class="entry-content clearfix">
<?php
the_content( __( 'Continue reading <span class="meta-nav">→</span>', 'the-bootstrap' ) );
the_bootstrap_link_pages(); ?>
</div><!-- .entry-content -->
<?php endif; ?>
<footer class="entry-footer">
<?php the_bootstrap_posted_on(); ?>
</footer><!-- .entry-footer -->
<?php tha_entry_bottom(); ?>
</article><!-- #post-<?php the_ID(); ?> -->
<?php tha_entry_after();
/* End of file content-aside.php */
/* Location: ./wp-content/themes/the-bootstrap/partials/content-aside.php */
]]>
How would I go about to limit the width of the sidebars?
]]>I have a problem, my web Playrust.es can not remove the white border that is in the header and content.
I pass an image
I would also like to know if there is a method to remove “Archives” and “Meta”, I have removed all widgets.
Thanks for listening ;).
]]>How can I make the drop down menu drop on hover rather than on click?
Thank you
]]>I”m using the Bootstrap theme. I would like to specify a maximum width. As it is now, the content varies wildly with the size of the window….
johnease.com
Any suggestions on where/what code to allow flexibility for tablets, phones, but give a max width?
Thanks in advance.
]]>