• Resolved Arbab Ali

    (@dont890)


    Hello, I want to optimize my search preview. This is the preview of the search result which is already displayed in google. https://ibb.co/vL1bZdX
    (the highlighted part is a slug right?)

    I don’t want to show to something like this in Google. It should be something like
    mywebsite > Category Name > Slug

    While keep the other preview same. Like title and description.

    Let me know how can I achieve it.
    Thank You

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dont890,

    Thank you for contacting the support.

    Google picks that up automatically from the URL structure of the page. You can add the category part in your URL to get it included in the SERP preview. However, it isn’t recommended to change the permalink structure of an indexed site as it can affect the ranking of your site.

    Another way is to add the Breadcrumbs Schema to the page and include your category in it. You can follow this guide to add the Breadcrumbs Schema and then wait for Google to crawl your page again and pick up the changes(if they decide to): https://rankmath.com/kb/breadcrumbs/

    Hope this helps. Let us know if you need any other assistance.

    Thread Starter Arbab Ali

    (@dont890)

    https://rankmath.com/kb/breadcrumbs/#num-2-10-show-category
    Will it only work for parent categories too?
    Like if i don’t have any child category and have only parent category. Enabling this option will show the parent category name in breadcrumb? OR it only works when you have child category too?

    Enabling this option also cause and empty gap displyed at above the main menu https://ibb.co/0nH4FdF . I don’t want to show it. It should be only for search engine not to affect my website appearance.

    answer both questions.

    • This reply was modified 4 years ago by Arbab Ali.
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dont890,

    If you only want to get the parent category in the breadcrumbs, you do not need to enable that option.

    You can head over to Rank Math > Titles & Meta > Posts, set the “Primary Taxonomy” to “Categories” and ensure that the “Hide Taxonomy Name” option is disabled from Rank Math > General Settings > Breadcrumbs.

    Regarding your second question, this can be fixed using custom CSS. Please share the URL of the page so that we can have a closer look.

    Looking forward to helping you. Thank you.

    Thread Starter Arbab Ali

    (@dont890)

    Regarding the first one. I enabled it and waiting for results.
    For the second one, here is the CSS class .rank-math-breadcrumb .

    RankMath caused the conflict and enabling the first option, stopped me from customizing the theme options inside appearance>customize. fix this issue so that it doesn’t causes the conflict.

    Error:https://ww.wp.xz.cn/support/topic/looks-like-somethings-gone-wrong-wait-a-couple-seconds-and-then-try-again-2/

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @dont890,

    Based on the website’s theme, the spacing and margins can differ. However, please try using the below CSS code and see if it helps:

    rank-math-breadcrumb{
    margin: 0;
    padding: 0;
    }

    You can add the CSS by following this guide:
    https://www.wpbeginner.com/plugins/how-to-easily-add-custom-css-to-your-wordpress-site/

    In case it doesn’t work, you’ll have to share the actual URL of the page so that we can have a closer look. Alternatively, if you prefer, you can also get in touch with your theme support and they would be able to help you in removing the unwanted spaces.

    Regarding the conflict, could you confirm if you performed the conflict test as suggested in the thread you shared? If not, please perform it by following this guide: https://rankmath.com/kb/check-plugin-conflicts/

    Let us know how that goes.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello,

    Assuming you are using the latest version of all the plugins, themes & WordPress and the issue is resolved, we are closing this topic.

    If that is not the case, please feel free to open a new support topic or reply to this one and we will be more than happy to assist.

    Thank you.

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

The topic ‘Optimizing snippet preview’ is closed to new replies.