Need help with theme Business (Modern Themes): sidebar issue

This appears to be a mistake by the theme developer. They forgot the proper grid classes on the html. Open archive.php in the themes folder or in the editor and change line 13 From this: <section id=”primary” class=”content-area”> To this: <section id=”primary” class=”content-area col-9-12″>

WordPress Bootstrap Grid

In my opinion, you should use wp-query. Using a sidebar for this purpose will yield problems in the long term. SEO: Sidebars are taken as “aside” content, which is considered less relevant content by search engines. Editor: The editors for the sidebars are much worse than post editors. Reliability: Any change to containers added in … Read more

Loading scripts only if a particular shortcode or widget is present

You can use the function is_active_widget . E.g.: function check_widget() { if( is_active_widget( ”, ”, ‘search’ ) ) { // check if search widget is used wp_enqueue_script(‘my-script’); } } add_action( ‘init’, ‘check_widget’ ); To load the script in the page where the widget is loaded only, you will have to add the is_active_widget() code, in … Read more

Trying to Add a LEFT Sidebar?

I added after get_header(); ?> <aside id=”secondary” class=”left-sidebar widget-area” role=”complementary”> <?php dynamic_sidebar( ‘sleft’ ); ?> </aside><!– .sidebar .widget-area –> Then aside#secondary { width: 20%; float: left; margin-right: 15px; } Now… if you’re going to have both sidebars, you’ll have to adjust the @media screen and (min-width: 61.5625em) body:not(.search-results) article:not(.type-page) .entry-content { float: left; width: 50%; … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)