Php-Snippet Breadcrumb und Linvorschau für die Startseite

#640884
  • Hallo hier Charlie,

    ich hätte da eine bzw eigentlich 2 Fragen.

    Nummer eins:

    Ich bin mir unsicher, wo genau das php-Snippet für den breadcrumb in der header.php eingefügt wird. ich nutze das divi-theme. und ein child davon das di photo vom Marko. Und die PHP wird aber am Ende gar nicht mit ?> abgeschlossen? Das irritiert mich.

    Und bevor ich eurer Snipped falsch einbaue, frage ich lieber mal direkt nach. Ich habe Screenshots gemacht. Siehe Link zu meiner Google-cloude. Ist ein seperater Ordner. Und den Link meiner Webseite schicke ich auch noch mit.

    Nummer zwei:

    Für meine Startseite bekomme ich partout keine Linkvoschau hin, wenn ich sie auf Facebook oder in Telegram oder Whatsup teilen will. Woran könnte das liegen?

    Denn bei den Porjektseiten und meiner Kontaktseite funktioniert es doch auch.

    LG
    Charlie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Bzw. Es gibt für die Startseite dann doch eine Vorschau. ABer da wird das falsche Bild angezeigt, und die Kurzfassung des Textes wird nicht mit übermittelt.

    Hello,

    Thank you for contacting Rank Math support. I’m sorry to hear that you’re having trouble with adding breadcrumbs to your site.

    To add breadcrumbs to your website, you need to enable the breadcrumbs function in Rank Math from Rank Math > General Settings > Breadcrumbs. Then, you need to add the following code snippet to your theme template files where you want to display the breadcrumb:

    /**
     * Use the following code in your theme template files to display breadcrumbs:
     */
    <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>

    The exact file where you add this code would depend on your theme, it is usually the single.php file or the header.php file, but it can vary from theme to theme. If you’re not sure where to add the Rank Math breadcrumb code, you can reach out to your Divi developers for help. You can also refer to this guide for more details: https://rankmath.com/kb/breadcrumbs/

    Regarding the link preview issue, can you please share the affected URL with us? Also please share a screenshot of the unwanted image that you are currently seeing.

    Thank you for your patience and cooperation. Looking forward to hearing back from you.

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

You must be logged in to reply to this ticket.