This topic has 5 replies, 4 voices, and was last updated 9 years by Abe.

  • Author
  • #24092
     DDClub
    Participant

    I am using a right sidebar layout. I would like to reduce the width of the sidebar by about half, while increasing the body to match.

    Please let me have the code and tell me where to put it. I am not a coder so I need exact directions! Thanks in advance.

    #24367
     Catalin
    Moderator

    Hello,

    Please send me a link to your website to be able to provide you a solution for your request.

    Thank you,
    Catalin

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

    From customer who sent a message to the no-reply email address:

    The site is not live. It’s been developed on localhost with XAMPP. What I am trying to do is change all my (right-hand) sidebars to be narrower than they are in relation to the body. I guess they are both set to percentages of the total width and I can insert some code in a child theme?

    Thanks, Anthony

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

    #24965
     Catalin
    Moderator

    Hello,

    You need to copy this file:

    ..\themes\sweetdate\page-templates\right_sidebar.php

    to your child them keeping the same folder structure and modify this rows:

    COPY CODE
    
    
    <div id="main-content" class="eight columns">
    
    <?php add_filter('kleo_sidebar_class', create_function('', 'return "four";')); ?>
    
    

    instead of eight you can put nine and instead of four you can put three… you will need to restyle some widgets tho.

    Let me know if this works.

    Thank you,
    Catalin

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

    Hi,
    I would like to decrease the width of the right sidebar in the sweetdate theme, and increase the main page space (nine/three) – I followed you instructions above but is not working (I copied the right_sidebar.php in child and change the number of columns). Please advice
    thx

    #41233
     Abe
    Keymaster

    Since that one you copy is a page template, make sure you set it in the page you want to use it

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

    ---
    @ SeventhQueen we do our best to have super happy customers. Thanks for being our customer.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?