[Resolved] Image full container width

Home Forums Support [Resolved] Image full container width

Home Forums Support Image full container width

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #134542
    Oskar

    Hello!
    I wonder if its possible show an image on a page with full container widht, in other words with no space between the image and the container?

    #134578
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    So you want the image to push right up against the edges of the container?

    Do you want this with regular images you’ve added to your content or with the page header/featured images?

    #134752
    Oskar

    Yes exactly! Is it possible? I want to to this with regular images added to the site, for example on my first page!

    Thanks! Oskar

    #134786
    Tom
    Lead Developer
    Lead Developer

    You can wrap regular images in this class: ignore-xy-spacing

    For example:

    <div class="ignore-xy-spacing">
          My image HTML in here
    </div>

    That should do it πŸ™‚

    #134820
    Oskar

    Thanks! Im a bit new to this: Can I use the Jetpack plugin and “edit css” for this?

    Should I write:

    <div class="ignore-xy-spacing">
          http://www.kbtterapistockholm.se/wp-content/uploads/2015/09/ImageResizer.net-42nhjz88gudcv2p.jpg
    </div>

    Thank you, Oskar

    #134821
    Tom
    Lead Developer
    Lead Developer

    No need to write any CSS – GP does it for you.

    That’s exactly what you should write in your content πŸ™‚

    #134824
    Oskar

    Thanks! The imgage looks like this in my content now:

    ImageResizer.net - 42nhjz88gudcv2p

    Can you help me where to place the new code?

    <div class="ignore-xy-spacing">
          http://www.kbtterapistockholm.se/wp-content/uploads/2015/09/ImageResizer.net-42nhjz88gudcv2p.jpg
    </div>
    #134827
    Tom
    Lead Developer
    Lead Developer

    You would place that code in your “Text” editor wherever you’d like it to show up in your content.

    #134932
    Oskar

    Great, thanks!! Is it also possible to remove the space abow the image? (between the image and the container)

    #135019
    Tom
    Lead Developer
    Lead Developer

    That should do it – can you link me to a page where the space above is present?

    #135095
    Oskar

    Here is an example with the space abow present: http://www.kbtterapistockholm.se/

    Regards, Oskar

    #135185
    Tom
    Lead Developer
    Lead Developer

    Are you using GP Premium? If so, use the Disable Elements add-on to disable the headline/page title.

    That should remove that gap.

    Let me know πŸ™‚

    #135196
    Oskar

    Hello!
    I use the GP premium but when Im trying to make it dissapear with the disable elements add-on nothing happens. Do u know whats wrong?

    I checked the Post Image / Page Header
    Headline / Post Title boxes in the disable elements section on the page…

    //Oskar

    #135305
    Tom
    Lead Developer
    Lead Developer

    Looks like it worked to me? Try clearing your cache πŸ™‚

    #135453
    Oskar

    Cleared my cache and it worked! Thanks alot!

    //Oskar

Viewing 15 posts - 1 through 15 (of 19 total)
  • You must be logged in to reply to this topic.