This topic has 11 replies, 3 voices, and was last updated 6 years by Radu.

  • Author
  • #161764
     LindaK816
    Participant

    Hi there – so I created a custom sidebar called BLOG-sidebar and added it to my BLOG page but it is not showing up at: http://www.treyburn-test.org/blog/

    Your expertise is always greatly appreciated : )

    Thank you!

    LindaK

    #162029
     Laura
    Moderator

    Hello, can you share access so i can check it out? 🙂

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #163135
     LindaK816
    Participant
    This reply has been set as private.
    #163257
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution

    Laura Solanes - Graphic Designer and Web Designer

    Please be patient as I try to answer each topic as fast as i can.

    If you like the theme or the support you've received please consider leaving us a review on Themeforest!

    Always happy to help you 🙂

    #163424
     Radu
    Moderator

    Hi,

    Just log in via FTP to your site in wp-content/themes/kleo-child/ and create a file named sidebar.php and paste the next code in it

    COPY CODE
    
    <?php
    /**
     * The Sidebar containing the main widget area
     *
     * @package WordPress
     * @subpackage Kleo
     * @since Kleo 1.0
     */
    ?>
    <?php
    $sidebar_classes = apply_filters( 'kleo_sidebar_classes', '' );
    $sidebar_name = apply_filters( 'kleo_sidebar_name', '0' );
    ?>
    
    <?php
    	if( $_SERVER['REQUEST_URI'] == '/blog/') {
    		get_sidebar('nice-bar');
    	}
    ?>
    
    <div class="sidebar sidebar-main <?php echo $sidebar_classes; ?>">
    	<div class="inner-content widgets-container">
    		<?php
    		if( $_SERVER['REQUEST_URI'] == '/blog/') {
    			get_sidebar('BLOG-sidebar');
    		}
    		?>
    	</div><!--end inner-content-->
    </div><!--end sidebar-->
    
    <div class="sidebar sidebar-main <?php echo $sidebar_classes; ?>">
    	<div class="inner-content widgets-container">
    		<?php generated_dynamic_sidebar( $sidebar_name );?>
    	</div><!--end inner-content-->
    </div><!--end sidebar-->
    

    NOTE : Child theme needs to be installed and activated.

    Let me know
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #163476
     LindaK816
    Participant

    Hello Radu, OK I did what you said above but when I activated the child theme, my website’s layout was all different. I imagine that both the Kleo and Kleo child themes cannot be active at the same time? Thanks, Linda

    #163653
     Radu
    Moderator

    Hi,

    The Kleo Child theme has separate theme options, so if you made changes in Child theme options they are used only when activate the theme, and the same principle for Kleo theme ( Parent theme ).

    You can export theme settings from parent theme and import them to child theme then the site should look the same

    You can save the theme options by navigating to : Wp-admin->theme options -> import/export -> download data file and also can be imported in same way after activating Kleo Child theme by choosing importing option.

    Then apply the code to functions.php file

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #192372
     LindaK816
    Participant

    Hi Radu,

    Are the widgets and sidebars also saved when you export the theme settings?

    Thank you,
    Linda

    #192450
     Radu
    Moderator

    No, they are handled by the wordpress, you can take a look here : http://www.wpbeginner.com/plugins/how-to-importexport-widget-settings-in-wordpress/

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #192576
     LindaK816
    Participant

    Thank you SO much – I am checking that out right now : )

    Linda

    #192596
     LindaK816
    Participant

    Hi Radu,

    The plugin worked great – thanks for pointing that out to me! Also you can close the ticket. I’m not sure if you added the php code above (I never did) but for some reason when I went into my BLOG page today, I was able to select my custom blog-sidebar : )

    Thanks again,
    Linda

    #192620
     Radu
    Moderator

    Hi

    Great

    Have a nice week

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 12 posts - 1 through 12 (of 12 total)

The forum ‘General questions’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?