• Resolved drive4corners

    (@drive4corners)


    Hi there,

    I was happy with this theme so far, but was curious how I could modify the theme slightly to widen my content area and either push the sidebar outward, or if I could slightly reduce the width of the bar.

    I think I found where the code is determining the width, but have not yet confirmed:

    /* Sidebar */
    #secondary {
    float: left;
    margin-left: 3.06%;
    width: 31.28%;
    }

    Is it as simple as changing the width value in my child theme??

    Thanks In Advance– definitely contemplating the premium version Attitude Pro!

Viewing 6 replies - 16 through 21 (of 21 total)
  • Hi @drag0n70
    You need to find this line in your style.css file and change it to the width you want:

    /* =Responsive Structure
    ----------------------------------------------- */
    /* All Tablet Portrait size smaller than standard 1079 (devices and browsers) */
    @media only screen and (max-width: 1078px) {

    If you don’t want this to be overwritten if you update your theme, you will need to use a Custom CSS plugin and copy and paste that whole section into it with your new width size.

    Hope this helps!

    Hi Laura, Thanks a million. I was struggling with the same problem as mentioned by drag0n70 above and your suggestion has done the job for me.
    BTW, any idea on how to create custom pages from existing ones?
    I am trying to create a new custom page/template without sidebar (full width, no sidebars), and it should not display the page title. I want to use it for a custom homepage i am playing around with.
    Any help will be highly appreciated 😉

    Glad I could help! As to custom page templates, it can be a little tricky, but I basically copy the page.php file and change the template name as well as the file name to whatever is appropriate, ie custom-page.php. This file will have to be uploaded through ftp/cpanel. Generally to remove the sidebar, you take out the line that is something like

    <?php get_sidebar(); ?>

    NOTE:BACK UP YOUR FILES. Changes to php files can take down your whole site, so you need to be careful and have a backup.

    I’d have to see the page.php code to see if you can remove the title from the template or not. It may be a line something like this that needs to be removed:

    <?php the_title(); ?>

    Thanks Laura. I am able to do the changes easily to other themes but this Attitude theme is proving to be a little tricky. And yes, I ALWAYS backup my files before making any changes.

    being new i hope is the right place and time to post this

    i am very new to wordpress i am using graphene
    with localhost.

    i am fairly ok with html and css websites but wordpress is
    not to user friendly especially in as for as php.

    right now i have a container at 1200px i have a content 855px
    and content_main at 60%.

    reading the above post by laura i noticed the words secondary and primary.
    what exactly do they relate to?
    reason for asking is i cant make the sidebar1 come out of content. and to the right of content in a container of its on.
    i am using a graphene child theme.

    thanks in advance

    Hi Donald234. Secondary and primary were divs in the css style sheet. You are using a completely different theme, so the stuff here won’t apply to you. Have you tried contacting the support for your own theme?

Viewing 6 replies - 16 through 21 (of 21 total)

The topic ‘Sidebar/ Content Width’ is closed to new replies.