• Resolved alvin101

    (@alvin101)


    running Twenty Seventeen Child 01 theme at http://sailinginroatan.com/

    I seem to have a problem controlling the image size, no matter what I do it just keeps the same size, you can see the last one I did is the facebook logo at the bottom of the page, I resized it to 50×37 and set to show original size but it just increases to the size that you see now, it does this on all settings, both links on that menu act the same.

    What do you think?

    Alvin

Viewing 7 replies - 1 through 7 (of 7 total)
  • Also using a Twenty Seventeen Child theme but working on my website in a desktop server so it is not live yet. I have the same problem as Alvin above, no matter if I set a custom image or an icon they are both super big no matter which size I choose in the image size drop down menu you have created.
    How can this problem be solved?
    Thanks,
    Cecilia

    Hello!

    Alvin101, check this screenshot http://www.awesomescreenshot.com/image/2150257/a8e5e3015ec9731b93d2b854b7a85c12, your theme’s CSS not expecting for small images in menu, you need to fix it by yourself via custom styles.

    Smakasnack, if you have uploaded images before the plugin install then you need to re-create thumbnails for all images with this plugin: https://uk.ww.wp.xz.cn/plugins/regenerate-thumbnails/
    If it doesn’t help, please copy

    Thread Starter alvin101

    (@alvin101)

    @zviryatko thanks zviryatko

    I see what you mean with the screen shot, however if I make changes in the style.css where you point out, it affects other images on the site.

    Is there a way that I can make a change that would only effect the images in the menu?
    In Menu Structure, under Image size, it is set to Original Size, should that not override style.css?

    What do you think?

    • This reply was modified 9 years, 3 months ago by alvin101.

    CSS is powerful and you can override some rules for specific cases, for example: .main-menu a img has more priority than a img, also you can mark it as important a img { height: auto !important; }.

    Have fun 😉

    Should I change menu-image.css

    No, better to create child theme with your own CSS file, or install plugin that allow you add CSS from admin.

    Thread Starter alvin101

    (@alvin101)

    ya sorry I made an edit to my post, I am working with a child theme,…

    In Menu Structure, under Image size, it is set to Original Size, should that not override style.css?

    Thread Starter alvin101

    (@alvin101)

    Ok I made a change to your file… it seems to work for now, but when you upgrade I will loose it…

    .menu-item a img {
    border: none;
    box-shadow: none;
    vertical-align: middle;
    height: auto;
    max-width:100%;
    display: inline;

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘controling image size’ is closed to new replies.