WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Container width on custom template? (5 posts)

  1. actionflickchick
    Member
    Posted 4 years ago #

    How do I widen the container at http://actionflickchick.com/superaction/shop/ without changing the container width on any other pages at http://actionflickchick.com ?

    Creating the custome template 1Sidebar Page Template (page_no_left_sidebar.php) let me remove the left sidebar but we have been unable to alter the container width to make use of the space that was freed up by the removal of the left sidebar.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Did you try applying a different class or id to the container div in the new template?

  3. actionflickchick
    Member
    Posted 4 years ago #

    Yes, I added this to the custom template:

    <div id="container" class="1sidebar">

    That did a good job of letting me remove the left sidebar from the page in question, but the custom template has no place for me to alter the container's width. So I was advised to add this to style.css:

    #container.1sidebar { THE CONTAINER INFO }

    The part got added to style.css but seems to make no difference, so something's missing here.

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    The styling on the id (#) will over-ride the styling on the class as it's more specific. Try setting up a completely new container id.

  5. actionflickchick
    Member
    Posted 4 years ago #

    SUCCESS!!! Thank you, esmi!

Topic Closed

This topic has been closed to new replies.

About this Topic