New Landing How can we help? Themeforest Theme Support Neighborhood Change the width of Pages with Sidebar

Viewing 8 posts - 1 through 8 (of 8 total)
  • #30312
    michadecker
    Member
    Post count: 6

    Hi there,

    I would like to change the width of the pages with a sidebar from this:
    sidebar -> span4 / content ->span8

    to:
    sidebar -> span3 / content -> span9

    or to:
    sidebar -> span3 / content -> span10

    How can I do this. I was already able to change the sidebar width in the page.php of your theme, and I changed there also the full content width, but the different rows of the content won’t change size. Could you tell me in which file I have to change it? You would really help me out a lot.

    Cheers
    Michael

    #30810
    Melanie – SUPPORT
    Member
    Post count: 11032

    Can you show me a page you are referring to?

    #137324
    larslenselink
    Member
    Post count: 99

    Have you found a solution yet? I hate the span4 width sidebars used on all pages (where the shop standard sidebar is span3).

    How can we change the span4 sidebar (span8 content) to span3 sidebar (span9 content) all over the website?

    #137543
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Open up page.php and find:

    <?php if ($sidebar_config == "left-sidebar") { ?>
    		
    		<aside class="sidebar left-sidebar span4">
    			<?php dynamic_sidebar($left_sidebar); ?>
    		</aside>
    
    	<?php } else if ($sidebar_config == "right-sidebar") { ?>
    		
    		<aside class="sidebar right-sidebar span4">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    		
    	<?php } else if ($sidebar_config == "both-sidebars") { ?>
    		
    		<aside class="sidebar right-sidebar span3">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    	
    	<?php } ?>
    

    and change to:

    <?php if ($sidebar_config == "left-sidebar") { ?>
    		
    		<aside class="sidebar left-sidebar span3">
    			<?php dynamic_sidebar($left_sidebar); ?>
    		</aside>
    
    	<?php } else if ($sidebar_config == "right-sidebar") { ?>
    		
    		<aside class="sidebar right-sidebar span3">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    		
    	<?php } else if ($sidebar_config == "both-sidebars") { ?>
    		
    		<aside class="sidebar right-sidebar span3">
    			<?php dynamic_sidebar($right_sidebar); ?>
    		</aside>
    	
    	<?php } ?>

    2 Instances of span3, changed to span4

    And then on line 88:

    <div <?php post_class('clearfix span8'); ?> id="<?php the_ID(); ?>">

    Change the span8 to span9

    – Kyle

    #137549
    larslenselink
    Member
    Post count: 99

    Thanks Kyle! But every time I update the theme, these changes will be lost right?

    #137552
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Not if you use a child theme, save the file in your child theme

    – Kyle

    #137722
    larslenselink
    Member
    Post count: 99

    Perfect. Thanks a lot!

    #137723
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register