Hi,
thanks for the suggestion regarding the use of a dedicated SEO plugin. I agree that Yoast SEO is an excellent solution, however, in my case, I am using RankMath. Unfortunately, RankMath does not allow me to modify certain data structures that I am looking to optimize.
I have already disabled the article schema option of the theme and tried other plugins, but the problem persists. I feel more comfortable working directly with the code, I just need to know where to find it.
Thanks.
Thank you for your help. I resolved the problem. I set the category model to 1 and edited its CSS.
It still doesn’t work. At this point, it seems to me that the ideal solution is to use the category page and maybe modify it to make it similar to my container page. Unfortunately, any future modifications to the category pages will need to be done through code, and this will take time.
I have been exploring this possible solution for a while, as I was asking above: In the categories page, there is this white element (see photos), how can I change its color? I would like to make it gray like the rest of the block.
Photo 1: https://i.ibb.co/1fLc1Rd/1.png
Photo 2: https://i.ibb.co/5LPvjqM/2.png
Photo 3: https://i.ibb.co/J3kxNJ2/3.png
I installed Breadcrumb NavXT and added the code in the functions.php file.
Now I need to display the Breadcrumb NavXT plugin in the article template. I need to activate the ‘bcn_display’ function here:: wp-content/plugins/td-composer/legacy/Newsmag/parts/single/loop-single-7.php
Is that correct?
In the categories page, there is this white element (see photo), how can I change its color?
Photo 1: https://i.ibb.co/SdM78kz/1.png
Photo 2: https://i.ibb.co/VvfnCk3/2.png5
Hi, thanks for the responses.
So, the page created to contain the articles is customizable via TagDiv Composer, whereas the categories are not. It might seem like the same thing, but there’s a significant difference. When I need to make important changes, I won’t be able to do so in the categories, only in the page. My intention is to transform those customizable pages into categories.
Regarding the functions, since I have 6 pages that act as 6 categories, the script uses the “get_category()” function to determine the category associated with the article. So how can I tell the breadcrumbs “Hey, take the customized page that contains the articles and not the category”? How does the “get_category()” function identify the category associated with the article? Through an ID? Through an index of an array?
For example:
If in my “article 1” the breadcrumb is as follows:
Home > category 1 > article 1
And I want to transform it into:
Home > container page 1 > article 1
I think that in the “get_category()” function, when it identifies the category, I need to pass it the URL of the page that contains that category. Otherwise, how could I do it?
Hi,
From the code, it seems that the breadcrumbs are generated using the functions:
-get_category()
-get_title()
The structure is fine as it is, but I would like to replace the “get_category()” function to show custom pages instead of the category.
This is because my categories are called in custom pages. I have made the categories noindex to not show them to visitors, and I have transformed some pages into categories by inserting a block that calls the articles of that category. However, when I access an article and click on the breadcrumb, it takes me to the category, which I want to avoid.
I probably need to associate each category with the corresponding page also through a script, for example:
Category Windows –> Page Windows
Category macOS –> Page macOS
etc…
My question is: Is the right way to do this by modifying the “get_category()” function? If so, where can I find it to modify it?
To make it clearer:
This is the custom page that I transformed into a category: https://i.ibb.co/zstP4hf/Pagina-Windows.png
This is the category, which I cannot customize and want to avoid showing to visitors: https://i.ibb.co/cQHfBh6/Categoria-Windows.png
-
This reply was modified 2 years by
maryano.
Hi, thanks for the response.
I tried with some apps, but they don’t seem to work correctly with the theme. Could you explain to me which .php file I should modify to set this change in the breadcrumbs?