• Hello,

    There seems to be an issue in the spacing for the ‘Jump to Recipe’ button which appears right at the top of my post (using the default feature), as there is no padding/ spacing between the social media share icons and these buttons, when viewed in mobile. The spacing is proper in desktop and iPad view, however this issue is noticed only when viewing the post from mobile. Is this a bug and how to fix this?

    Thanks

    Kannan

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi Kannan,

    Thanks for getting in touch about this. The Jump to Recipe button isn’t part of the theme (it’s an element of the WP Recipe Maker plugin), and the social sharing icons are also being added by a plugin (Sassy Social Share), which is specifically setting the margin to a single pixel. Your best bet in the future is probably going to be reaching out to the plugin authors, but in a pinch you should be able to add a bit of CSS in the Customizer to increase the margin here…something like this should work:
    .wprm-recipe-snippet { margin-top: 30px; }

    If you prefer to only have a margin on mobile, you could also add a media query for this. ??

    Hope this helps!

    Thread Starter kannandgr8

    (@kannandgr8)

    Hi Steven,

    Thanks for your feedback and help. I will open a separate thread in WP forums for this issue. I did try the css provided by you, but it did not make any difference to the padding in the mobile view. Any idea why?

    Cheers!
    Kannan

    Hi Kannan,

    Looks like it’s due to the fact that WPRM is loading their CSS right before the closing body tag, so it overrides anything you enter. You can either use !important, like this:
    .wprm-recipe-snippet { margin-top: 30px !important; }

    Or just make yours more specific, like this:
    .wprm-recipe.wprm-recipe-snippet { margin-top: 30px; }

    Let me know if you still have trouble!

    Thread Starter kannandgr8

    (@kannandgr8)

    Thanks a ton Steven. This trick worked perfectly.

    Cheers!
    Kannan

    Nice! Thanks for letting us know, Kannan. ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘No padding for the Jump to Recipe button in Mobile View’ is closed to new replies.