Changing size at which featured image is displayed

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #6203 Reply
    jon
    Guest

    Hello. I am attempting to change the size at which a featured image is displayed on a page generated by the Food and Drink Menu plugin. Here is the test menu I’m attempting to alter. I have edited the options in the plugin and contacted its author, thinking I’d find the answer there. He informed me, however, that the size at which the image is displayed is determined by the theme. I have changed sizes in Frontier Options and Settings/Media, but I get the same result no matter what I attempt. I’ve also uploaded your child theme, switched to that, and copied this bit of code into its functions.php. Regardless of what I do, the images display at 417 x 417, which is even more frustrating, as I don’t see a 417 x 417 size options anywhere.

    Any help with this issue would be greatly appreciated.

    #6207
    Ron
    Keymaster

    The theme options and the tutorials on changing the size of Frontier theme Featured Images won’t help since that is specific to Frontier Theme usage on regular posts and not custom Post Types. Since your page is a custom Post Type created by the plugin, then the actual size of the images outputted on that page is controlled by the plugin. This is especially true if a particular content is added using shortcodes.

    Using Firebug I can see that the size of your particular images are being scaled using classes with names like .fdm-menu, .fdm-item-panel, .fdm-item-image. These classes are not part of the theme. Your plugin also outputs a style that controls the image display size.

    .fdm-item-image {
        width: 33%;
    }

    You can override that size by copying the code, changing the percentage then placing it on any custom css option/plugin.

    A quick test to isolate and determine if a style is imposed by a theme or a plugin is to temporarily use any of the default WP themes (twentyfifteen).

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Changing size at which featured image is displayed
Your information: