WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] I want to expand the content width only some page (3 posts)

  1. indepencil
    Member
    Posted 2 years ago #

    Hello

    I use Athemia premium theme and use the SimplePress forum plugin
    then I've removed sidebar of forum page
    now I want to expand the content width (fixed page width)for only that page
    but I don't know what to do...

    ps. I've tried the following code on header.php

    <?php if(is_page('page-id')) { ?>
    <style> #main {width:100%;} </style>
    <?php }; ?>

    but it's not working

    this page >>> http://www.indepencil.com/forum/

    I would be thankful for any help ^^

  2. alchymyth
    The Sweeper & Moderator
    Posted 2 years ago #

    try:

    <?php if(is_page('forum')) { ?>
    <style> #content {width: 98%;} </style>
    <?php }; ?>

    your theme does not have elements with the css id #main;
    http://codex.wordpress.org/Function_Reference/is_page

  3. indepencil
    Member
    Posted 2 years ago #

    WOWWWWWWWW @alchymyth

    Thank you very very much for your kindness

    it's now working ^^

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags