Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1268445
    ricardoalmeida2511
    Participant

    Hello,

    I need to create a blog with content on the left and sidebar on the right. I configured the template as you said above in answer #73479 (https://community.theme.co/forums/topic/setup-blog-correctly/#post-73479) , here is the image: http://prntscr.com/davprk

    But when I select the static Blog page in the read settings, the template configuration adds up to the page attributes in the Blog page edit: http://prntscr.com/daw59b

    I created a sidebar called “Blog Sidebar” and put widgets on it, but no sidebar appears on my blog: http://www.pescadosvalmar.com.br/blog

    I want sidebar only on Blog, not other pages.

    Please help me, I have several clients with this theme and I need a solution for all of them.

    Thank you

    #1268471
    Rahul
    Moderator

    Hey There,

    Thanks for writing in!

    Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:

    – Link to your site
    – WordPress Admin username / password

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1268907
    ricardoalmeida2511
    Participant
    This reply has been marked as private.
    #1268917
    ricardoalmeida2511
    Participant

    Please also check how to make page content and blog content down so the floating menu does not overlap.

    Thank you.

    #1269087
    Rue Nel
    Moderator

    Hello There,

    Thanks for updating in! To add a sidebar in your blog index, please insert this following code in your child theme’s functions.php file.

    // Sidebars only in Blog index
    // =============================================================================
    function blog_index_sidebar($contents) {
      if ( is_home() ) {
        $contents = 'content-sidebar';
      }
      
      return $contents;
    }
    add_filter('x_option_x_layout_content', 'blog_index_sidebar');
    // =============================================================================

    To get rid of the menu overlapping the blog title, please go to the customizer, Appearance > Customize > Header > Navbar and set the “Navbar Top Height (px)” to at least 60 pixels.

    Hope this helps.

    #1269493
    ricardoalmeida2511
    Participant

    Thanks for the quick response,

    On the sidebar had no effect even putting the code in the child theme funtions.php. Did I do something wrong?

    On the overlap of the menu when increase the value in the indicated place happen 2 things:
    1) navbar expands but overlaps title (http://prntscr.com/db87y3)
    2) on the main page the video is shifted down, but we want it to be under the menu (http://prntscr.com/db8915)
    * I extrapolated the value to 360px to be evident

    Thanks for listening

    #1269844
    Rad
    Moderator

    Hi there,

    Would you mind providing your FTP login credentials as well? I’ll check it from there.

    1. It’s because of this CSS, what’s the purpose of this?

      header.masthead {
       margin: 10px;
       margin-bottom: -100px;
    }

    And your navbar height is still 30px, it should be around 90px.

    2. It’s not shifted on my end. What device and browser you’re checking it on?

    Thanks!

    #1269954
    ricardoalmeida2511
    Participant

    Okay, I deleted the CSS but I need the video from the home page to be under the menu, and for that I changed the Navbar Top Height to 0px, but now the menu is under the BLOG title, how to solve this?

    I’m using Google Chrome.

    I will pass FTP credentials via private message.

    Thank you

    #1269958
    ricardoalmeida2511
    Participant
    This reply has been marked as private.
    #1270125
    Lely
    Moderator

    Hi There,

    Thank you for the FTP credentials. Your settings was correct both on admin and then the code was correctly added on the child theme. I just tested the same setup and it works on my test site. It adds right sidebar on the blog index page. I did also checked and you don’t have a caching plugin. Do you have a caching service on your hosting? This might be cache. Try to purge cache so we can see updated content.

    I also notice the following error from your ERROR LOG

    [24-Nov-2016 20:02:17 America/Chicago] PHP Warning:  PHP Startup: imagick: Unable to initialize module
    Module compiled with module API=20131226
    PHP    compiled with module API=20121212
    These options need to match
     in Unknown on line 0
    [24-Nov-2016 20:02:17 America/Chicago] PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
    Module compiled with module API=20131226
    PHP    compiled with module API=20121212
    These options need to match
     in Unknown on line 0
    [24-Nov-2016 20:04:00 America/Chicago] PHP Warning:  PHP Startup: imagick: Unable to initialize module
    Module compiled with module API=20131226
    PHP    compiled with module API=20121212
    These options need to match
     in Unknown on line 0
    [24-Nov-2016 20:04:00 America/Chicago] PHP Warning:  PHP Startup: SourceGuardian: Unable to initialize module
    Module compiled with module API=20131226
    PHP    compiled with module API=20121212
    These options need to match
     in Unknown on line 0

    Your site PHP version is not updated. Please update to at least PHP5.6. See this:https://wordpress.org/about/requirements/

    Regarding the homepage, please set again Navbar top height to 90px. Then to move the video behind the navbar on homepage, please update this custom CSS:

    .home .x-slider-container.below {
        border-bottom: none;
    }

    To this:

    .home .x-slider-container.below {
        border-bottom: none;
        margin-top: -90px;
    }

    Hope this helps.

    #1279525
    ricardoalmeida2511
    Participant

    Hello

    I made the suggested changes.

    PHP updated to 5.6.27: http://prntscr.com/deq025
     
    CSS: http://prntscr.com/deq0j7

    I installed WP Total Cache and cleared the cache.

    But now when I try to enter the following error appears: http://prntscr.com/deq1ch

    And if I rename the functions.php file to another name to ignore the changes the site gets all unconfigured.

    Could you please help me solve this?

    Thank you

    #1279594
    Christopher
    Moderator

    Hi there,

    #1 To display sidebar on blog page, remove the code we previously provided here https://community.theme.co/forums/topic/blog-with-sidebar-not-working/#post-1269087. Select one of content layouts with sidebar under Customize -> Layout and design. Change blog’s layout to ‘Global’ under Customize -> Blog. For other pages use full width or blank templates to not display the sidebar.

    #2 Update your CSS to :

    .x-slider-container.below {
        margin-top: -90px;
    }

    Hope it helps.

    #1284967
    ricardoalmeida2511
    Participant

    Hi there,

    It’s working wonderfully well!

    Themeco’s support is really the best!

    Many thanks to everyone for their help.

    #1285254
    Lely
    Moderator

    You’re welcome!

    Cheers!

  • <script> jQuery(function($){ $("#no-reply-1268445 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>