Forums

Expanding page content per page (10 posts)

  1. ryanTTF
    Member
    Posted 4 months ago #

    So let me start off by saying, Yes..I have searched for this problem and there are a lot of examples out there that say they fix the problem. However I can not get this to work on my theme.

    I am using mystique lite version, on a self hosted wordpress site. Sadly I can not link you to the website because you have to be on our internal network to view the site.

    Now the problem and what I have so far.

    In my page.php I have added

    <?php if (is_page('pageName.com')) : get_sidebar(); endif; ?>

    This works as expected, on the home page there is a widget bar and on all the others there is no widget bar. However on the other pages the content has not been expaned to the correct size, it still thinks there is a widget bar. Which I understand, but dont know how to tell the style.css that the page can be wider.

    NOW, here is the code that sets the size of the content found in the style.css.
    If there is a side bar I should use this code

    /* SIDEBAR PAGE SIZE */
    .fixed.col-2-right #primary-content{width:610px;left:330px}
    .fixed.col-2-right #sidebar{width:320px;left:340px}
    .fixed.col-2-right #mask-1{right:320px}
    .home.fixed.col-2-right #primary-content{padding-top: 20px;}

    If there is NO side bar I should use this code

    /* NO-SIDEBAR PAGE SIZE */
    .fixed.col-2-right #primary-content{width:940px;left:330px}
    .fixed.col-2-right #mask-1{right:320px}
    .home.fixed.col-2-right #primary-content{padding-top: 20px;}

    How do I get the PHP to tell the style.css which block of code to use? I should warn you, while I am a coder I do NOT know css, or html or php. So you can skip over basic coding problems like conditionals but, please dont skip over language specific problems.

    Thanks guys!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Try using Firefox with the Firebug add-on for this kind of CSS work.
    http://getfirebug.com/

  3. ryanTTF
    Member
    Posted 4 months ago #

    Hey esmi, I have firebug already installed but not sure how this would help in my current situation as I have found the items of code that need to be edited but dont know how to edit them on a per page basis. If I am missing a key function of firebug let me know.

    Thanks

  4. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    You will be able to see what CSS is being used on any element on a given page. You should also be able to see (from the markup) what classes are available for re-styling pages without sidebars.

  5. ryanTTF
    Member
    Posted 4 months ago #

    but how do I tell wordpress to change what element is being used from page to page. I am sorry Esmi but I feel like we are talking in circles here. If you have some code help that would be great, but simply saying use this plug in is not much of an answer....

  6. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Providing general CSS support is not the main remit of this forum. If you want to learn CSS, see:
    CSS Tutorials
    Learning CSS

    Failing that, examining the pages with Firebug should give you all of the information that you need.

  7. ryanTTF
    Member
    Posted 4 months ago #

    Really? because in the description of the forum on http://wordpress.org/support/ it says
    "Themes and Templates
    – XHTML and CSS"

    So if this is not the place to ask css based questions where should I go? I'm not here to learn CSS, Im here asking someone who already knows css how to do this. If you don't have the answer to the question Esmi don't answer, but don't be upset that you don't know the answer.

  8. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    where should I go?

    To a general CSS help forum.

    Im here asking someone who already knows css how to do this.

    If you cannot manage this yourself, try hiring someone. Or learn CSS and how to use tools like Firebug. Some people find it extremely helpful.

  9. ryanTTF
    Member
    Posted 4 months ago #

    That "example" does not apply. Again, I have the code that changes the width of the content, I don't need firebug to show me where the css code is located, you can not simply give the same answer to every question.

    So, now, if there is anyone else out there who has some css or maybe php knowledge and not firebug knowledge please can you help me with this problem.

    Again, I am simply trying to change the width of content per page. I have all the code I just dont know how to apply the code Per Page.

    So far this has to be one of the least helpful forums I have ever experienced... please prove me wrong.

  10. ryanTTF
    Member
    Posted 4 months ago #

Reply

You must log in to post.

About this Topic