• Hi!

    I’m trying to make use of the plugin CataBlog in TwentyThirteen but all the images projected as LightBox are presented with the right edge outside the white background.

    How to fix that?

    Kind regards,
    Tone42

Viewing 8 replies - 1 through 8 (of 8 total)
  • Add this to the end of your child theme’s style.css file:

    #catablog-lightbox-image img {
       width: 100% !important;
       height: auto !important;
    }

    Unfortunately the plugin sets the image parameters inline, which is why the !important clause has to be use.

    Thread Starter Tone42

    (@tone42)

    Hi CrouchingBruin,

    Thank you, but this seems to have no effect. The image still exceeds the white background. (http://tt.xenya.si/switches/)

    I experimented with the value of width % parameter – no effect at all. What am I doing wrong?

    Beside the upper problem I also find that the image to appear on the very top of the page (there should be a certain margin, or positioned central to the page), and I have no clear idea how to ensure all the images to appear of the same size.

    Kind regards,
    Tone42

    Where did you add the CSS? I don’t see it in the child theme’s style.css file.

    Thread Starter Tone42

    (@tone42)

    Hi CrouchingBruin,

    This is embarrassing:
    1. The code is right at the end of the child’s theme css, preceeded by a comment

    /**
     * CataBlog
     * dodano 17-nov-2015 zaradi zamika fotke glede na podlago v LightBox prikazu
     */
    
    #catablog-lightbox-image img {
       width: 100% !important;
       height: auto !important;
    }

    2. I played a lot with it yesterday without any success, however – today it works perfectly!

    Regarding the mystery No. 2 I guess it should have something to do with a cashing that is not managed by <F5>?

    Anyhow – CrouchingBruin, thanks a lot! The most important is that it works.

    I would wait if you or anybody else have anything to add to my other two problems with CataBlog, which are:
    1. How to move LightBox projection for a margin down from the upper page edge (or central to the page)
    2. What is a simple rule in order for all the images appear equally big on the screen (is equal images size – in pixels – sufficient?)?

    Kind regards,
    Tone42

    Thread Starter Tone42

    (@tone42)

    I guess it would be more in line with the posting rules if I close this topic and open two new ones.

    Kind regards,
    Tone42

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    I guess it would be more in line with the posting rules if I close this topic and open two new ones.

    Only if you want them deleted as I’ve done. 😉

    Don’t create multiple topics for the same related problem. It makes it harder to support you when you do that and duplicates will be deleted.

    I experimented with the value of width % parameter – no effect at all. What am I doing wrong?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    @awenthomas I don’t know but if you start your own topic with your own URL to look at then I’m sure someone will be able to help you. 😉

    https://wordpress.org/support/forum/how-to-and-troubleshooting#postform

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to adjust image size or margin in CataBlog’ is closed to new replies.