Hello,
I’m trying to integrate the breadcrumbs from YOAST.
When I edit the single.php and insert the YOAST code my sidebar is removed
and stretched my current template to the full (content) width.
Please have a look at my attached pictures.
I have replaced the yellow marked (Newspaper Theme) with the red framed one (YOAST).
I work with a child theme.
Thanks
With Newspaper Breadcrumbs: https://www.bilder-upload.eu/bild-763eae-1580406801.jpg.html
With YOAST Breadcrumb: https://www.bilder-upload.eu/bild-f3aa02-1580406910.jpg.html
After YOAST Code-Snippet: https://www.bilder-upload.eu/bild-6b536a-1580406818.jpg.html
Before YOAST Code-Snippet: https://www.bilder-upload.eu/bild-c9d39f-1580406833.jpg.html
Hi,
Please check this similar topic ->https://forum.tagdiv.com/topic/breadcrumbs-and-categories/ please notice that now the standard templates are set in wp-content/plugins/td-standard-pack/Newspaper/parts/single -> https://i.imgur.com/3XhCryY.png also the child theme need to be set as in our documentation from here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thank you!
Hello and thanks for the quick response.
I have done everything as described in the documentation.
I took the child theme from the /code/ directory and copied it into my /themes/ folder. Then I replaced the file single_template_1.php with the code from YOAST. And loaded both files (loop-single-1.php + single_template_1.php) into the child theme.
I also activated the child theme.
I use the default template. But I only find the files for template 1-13
single_template_1.php
single_template_2.php
single_template_3.php
single_template_4.php
single_template_5.php
single_template_6.php
…
Could this be the mistake?
I use default template: https://www.bilder-upload.eu/bild-5070af-1580478790.jpg.html
-
This reply was modified 6 years by
Patrick93.
Hi,
Yes, you apply the Yoast SEO on all style from 1 to 13, but you are using the default post style and for this one the code is not set, also the files for default post style need to be set in the root of child ( inside the child with the where is function.php file ), the file need to be copy from here -> wp-content/plugins/td-composer/legacy/Newspaper/single.php -> https://i.imgur.com/XFd8VOo.png
Thank you!
Hi Calin, thank you very much. Works fine!
Could you also explain how i can change Breadcrumbs on Category Pages?
I use category template style 3 and changed the code at td_category_template_3.php but it doesnt work.
https://www.bilder-upload.eu/bild-9543a7-1580729190.jpg.html
https://www.bilder-upload.eu/bild-df26f0-1580729202.jpg.html
https://www.bilder-upload.eu/bild-79bf13-1580729213.jpg.html
Thank you.
Thanks. But then I have two single.php files in my child theme folder.
Could you pls answer my other question above?
“Hi Calin, thank you very much. Works fine!
Could you also explain how i can change Breadcrumbs on Category Pages?
I use category template style 3 and changed the code at td_category_template_3.php but it doesnt work.
https://www.bilder-upload.eu/bild-9543a7-1580729190.jpg.html
https://www.bilder-upload.eu/bild-df26f0-1580729202.jpg.html
https://www.bilder-upload.eu/bild-79bf13-1580729213.jpg.html”
For desktop post pages and category pages it works now. That’s done. Thanks for the help.
But it does not work for mobile.
wp-content > plugins > td-composer > mobile > single.php
Where do I have to copy the single.php for Mobile to? What is the correct folder structure in the child theme?
I also need the Breadcrumbs Mobile for the category pages.
Hi,
Please make sure that you make the settings for category template in this file -> wp-content/plugins/td-standard-pack/Newspaper/includes/category_templates/td_category_template_3.php (you can set it in child theme) -> https://i.imgur.com/b6EcRoZ.png -> https://i.imgur.com/5DnhG3W.png -> results -> https://i.imgur.com/3Q8WYRG.jpg
Unfortunately the child theme do not work for the mobile theme plugin, sorry!
For mobile make these settings -> https://i.imgur.com/IpJD34D.png -> https://i.imgur.com/40x9VaB.png for mobile category -> https://i.imgur.com/rsv4yIH.png -> https://i.imgur.com/MdAZ6v9.png
Hope this will help you!
Thank you!
