WordPress.org

Forums

[resolved] formatting page content (6 posts)

  1. merothe
    Member
    Posted 6 years ago #

    Hi,

    I seem to be unable to make any changes to the format of the page content of my site. Am fairly new to css so imagine it is a simple mistake somewhere!

    Essentially, if I make any changes to #content in my stylesheet it doesn't change the appearance/style on the site.

    The code in my main index template is below (I am guessing my problem is from here):

    <?php get_header();
    ?>
    <div id="#menu">
    <?php include (TEMPLATEPATH . '/sidebar.php'); ?>
    </div>
    <div id="#menuright">
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    </div>
    <div id="#content">
    <?php the_content(__('(more...)')); ?>
    </div>

    Thanks

  2. richarduk
    Member
    Posted 6 years ago #

    <div id="#content">
    <?php the_content(__('(more...)')); ?>
    </div>

    Try getting rid of the hash, so:

    <div id="content">
    <?php the_content(__('(more...)')); ?>
    </div>

    Not sure about <?php the_content(__('(more...)')); ?>

    Shouldn't it be `<?php the_content('More...'); ?>

    `

  3. S.K
    Member
    Posted 6 years ago #

    "<?php the_content(__('(more...)')); ?>" is correct. It is gettexted.

    S.K

  4. merothe
    Member
    Posted 6 years ago #

    That fixed that problem - Thanks! I can now change the style of the content.

    Only problem now is that the content is below both the menus instead of between them...

    I have tried

    #content {
    float: left;
    clear: both;}

    with the menus as

    #menu {
    background: #000
    right: 2px;
    width: 200px;
    height: auto;
    float: left;
    text-indent:10px;
    margin: 0 10px 0 0;
    }
    
    #menuright {
    background: #000;
    width: 200px;
    float: right;
    margin: 0 0 0 20px;
    font-style:italic;
    }

    but no luck..any thoughts?

  5. cryonics
    Member
    Posted 6 years ago #

    Maybe

    position:absolute

    for the content...

  6. merothe
    Member
    Posted 6 years ago #

    That did it! - thanks

    It then overlapped with the menus but i played around and this works for now

    #content {
    position: absolute;
    width: 390px;
    margin: 0 210px 0 200px;
    }

Topic Closed

This topic has been closed to new replies.

About this Topic