• Hello,

    I would like to make my slider on https://www.q-a-law.com/?page_id=215 full width just as the featured slider on my main page https://www.q-a-law.com.

    I tried using the CSS code:

    .container {
    margin: 0 auto;
    max-width: 978px;
    /* width: 94%; */
    }

    and changed the 978px to 100%, but that changes the width of the navigation bar as well. I wish to make only the slider wide, not the entire page.

    Thanks for your help!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can’t do that easily.

    The “container” is used to contain everything within it to 978px.

    If you want the slider to go past the edge then you can rebuild your theme or hack it.

    1. Rebuilding theme:
    Find where the slider code is and add the following html before and after:

    </div>
    <!-- slider code is here -->
    <div class="container">

    This will break the container to let your slider go full-width and then start the container again.

    2. Hack the slider:

    Add this to your slider container:

    .slider-container {
        margin: 0 -10000px;
        padding: 0 10000px;
    }
    • This reply was modified 8 years, 6 months ago by SJW.
    Thread Starter namsu4you

    (@namsu4you)

    Thank you Shannon for a quick response. I must add that I understood half of you said since I am pretty new at this. My guess is that hacking is easier for a newbie. I created the slider using the “Smart Slider” plugin. Where might I find the slider container area to add the code you provided?

    You need to edit the theme files – you need to know what you’re doing so you don’t break the site so if you are new, you should proceed with caution.

    normally to hack – you would add the css to you style.css.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘full width of a particular page’ is closed to new replies.