Mon Cahier
[resolved] automatic image re-sizing problems in Mon Cahier (8 posts)

  1. dainsmoland
    Posted 3 years ago #

    Hi. I removed the sidebar on my site (by removing <?php get_sidebar(); ?> from the page.php) and re-sized the content (adding #main into the jetpack css editor and changing .site-content width to 960). That worked fine and functions how I want. However, I'm trying to add images to my pages which I have custom-sized to fit across the page (they all have widths of 960), but my images are getting re-sized when I publish them to a slightly smaller and out of proportion version. Clicking on them opens up the correctly sized image, but I can't get the full-sized image to display in the content. (see, for example, Home on smolandlaw.com).

    Any suggestions? Thanks for any help...


  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    Hello dainsmoland, are you using a Child Theme?

  3. dainsmoland
    Posted 3 years ago #

    Hi. Thanks for your quick reply. I removed the sidebar by pulling up the page.php template in the "editor" (because I do not know how to do a child theme and it seemed like such a minor change that I can easily reverse; i'm very new at this) but for the content re-sizing and some changes I made to the font, I am copying sections of the code into the Jetpack Custom CSS editor and tinkering around there, because I thought that functions a bit like a child theme (?)...

  4. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    In Jetpack's Custom CSS section, add this;

    .entry-content img {
     max-width: initial;
  5. dainsmoland
    Posted 3 years ago #

    That seemed to work as far as displaying the full-sized image. Thanks so much for your quick help!

    The image sits a bit to the right of the text alignment (I tried all three image-alignment settings, and it looks like "none" is closest to being aligned, but still a bit off). Any thoughts on that?

  6. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

  7. paulwpxp
    Font hero
    Posted 3 years ago #

    2 things ( as a side note)

    The content area can't be 960px because it has left and right padding too, notice the text span of the page now is way too the right ? The content area must be 920px.

    The CSS selecter used to change the page width is not really the right now, doing the way it is now preventing you from using a sidebar on blog post, it's okay if you will only use this theme full width in all post/page, but still you'd have targeted it with page class.

  8. dainsmoland
    Posted 3 years ago #

    Andrew: I see what you mean. I should be able to figure it how to get it centered.

    paulwp: You're right. I set the content 920 and it looks better.

    Thank you both.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic