• Resolved abreusky

    (@abreusky)


    Hi Jetpack crew!

    I’d like to ask you something.

    Is there a thin grey line on top of “Related” (from related posts) as well as the thin line on top of “Share”?

    I made some customisations on my blog and the thin grey line has disappeared.

    Using Firebug I tried to track from where that line comes from, but I couldn’t figure it out.

    This is a link to a post on my website. If you guys could have a look at it and see if there’s something wrong, and maybe have any idea on how to fix it…

    Thank you guys!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    The grey line appears to be displayed properly on my end:
    https://i.wpne.ws/imjb

    Did you manage to solve the issue on your own? Let me know if there is anything else I can do to help!

    Thread Starter abreusky

    (@abreusky)

    Hi Jeremy!

    Yes, I managed to solve it.

    There was a custom php code (in the functions.php file) to change the way related posts work. That was causing the grey line to disappear. I thought is would be better if those changes, especially in the thumbnails, were made in Jetpack’s related posts php files. I took a look at the settings and transported them to Jetpack php files. Then the grey line appeared again! ??

    Thank you!!

    Best!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    I thought is would be better if those changes, especially in the thumbnails, were made in Jetpack’s related posts php files. I took a look at the settings and transported them to Jetpack php files.

    I would strongly recommend against editing plugin files. The changes you’ve made will be overwritten next time you update the Jetpack plugin.

    We’ve made it possible to customize the behaviour of Related Posts (and other modules) via hooks, from outside the plugin. You can place these code snippets in your theme’s functions.php or a functionality plugin like this one:
    https://www.ads-software.com/plugins/code-snippets/

    If one of those snippets doesn’t work well for you, I’ll be happy to get things fixed: just post the snippet here and I’ll take a look!

    Thanks!

    Thread Starter abreusky

    (@abreusky)

    Hi Jeremy,

    Yes! That just happened to me right now!

    I updated Jetpack and lost the changes I’ve made.

    Hmmmm, how are these snippets?

    Once I used them, in the functions.php and it “broke” my website.

    Do the snippets look like CSS selectors?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Here are a few examples of snippets you can use to customize Jetpack’s behaviour:
    https://jetpack.com/support/related-posts/customize-related-posts/

    Of course, the snippet will depend on what you actually want to change.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘The thin grey line on top of “Related” has disappeared’ is closed to new replies.