Sidebar no longer showing on homepage after updated Visual Composer

Posted in: Newsmag
Post count: 15

Hi,

Everything was fine until we updated Visual Composer to new version. Now the sidebar is not working on the homepage.

Please see here: http://www.israellycool.com/

For the Homepage, I have used Visual Composer. I have a 2/3+1/3 layout with a Block 11 and Widgetized Sidebar.

Any ideas what has gone wrong?

Regards,
David

Post count: 6535

Hi

Try to update the theme at V 7.3 which is available on themeforest, clear all caches then test the site again. Also I’ve noticed that you’re using child theme so try to deactivate it then then check how t goes. If the problem is caused by the child theme try to update it to the newer version included in theme’s path: http://screencast.com/t/s3BU8yNq1

Let me know how it goes.
Thanks!

Post count: 15

Hi there – I’m Dave’s slightly more technical sidekick.

So I switched back to the unedited theme. Then replaced 7.2 with 7.3 and all seemed to work.

I tried making a cut down version of the child theme that overrides nothing at all but even that seemed to halt the side bar.

At the present time (after switching back to the unaltered 7.3) the sidebar space is there but it doesn’t seem populated. I’ve flushed caches on the server (Litespeed) and with Cloudflare.

Post count: 6535

Hi

I’ve checked your site and now the sidebar works fine: http://screencast.com/t/PANknPsqMQkS If you still need assistance on this please provide more details about your issue and we will get back to you as soon as possible.
Thanks!

Post count: 15

Hi, Brian here.

Yes the site works with vanilla 7.3 and the sidebar is fine.

However: I’m trying to get a child theme working and every time I turn the child theme on the homepage messes up and the sidebar disappears.

Here’s what I’ve done:

Folder called: Newspaper-7_3-IC-Child
style.css
/*
Theme Name: Newspaper 7.3 Israellycool Child Theme
Theme URI: https://themeforest.net/item/newspaper/5489609?s_rank=1
Description: Newspaper 7.3 Israellycool Child Theme
Author: Brian of London
Author URI: http://www.israellycool.com
Template: Newspaper
Version: 7.3 [corresponds to theme version 7.3]
*/

functions.php
<?php
// Added by Brian of London BoL 2016-07-20
// Updated 2016-08-18 to try to rework after 7.3
// switched from old method of child theme loading
// "Note that the previous method was to import the parent theme stylesheet using @import:
// this is no longer best practice, as it increases the amount of time it takes style sheets to load. "
//
//

function my_theme_enqueue_styles() {

$parent_style = 'parent-style'; //

wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>

That’s it, no other changes made yet (I’ve got a screenshot.png file in the folder too).

As soon as I select that child the sidebar suddenly jumps to the bottom of the page, before the footer.

Post count: 6535

Hi

You did not set the priority for the action in your code. Try to replace the last line with this one and check how it goes:

add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles', 1001 );

Thanks!

Post count: 15

Blimey! That was somewhat easy. Strange because I copied and pasted my code direct from the WordPress instructions on creating a child theme.

That seems to have worked, I’ll slowly try to add back in the changes I had made on 7.2.

Brian

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.