viper Posted November 19, 2023 Posted November 19, 2023 How to show only one category or tag in the SEO text/description if have many categories or tags? like Sample SEO text for showing on %categories_as_string% category page. Here you can use <strong>HTML tags</strong>. Here you can show random %tags_as_string% words. showing all categorie and tags Quote
Tech Support Posted November 20, 2023 Posted November 20, 2023 Not possible via language tokens like %categories_as_string%, which text is that? 1 Quote
viper Posted November 20, 2023 Author Posted November 20, 2023 8 hours ago, Tech Support said: Not possible via language tokens like %categories_as_string%, which text is that? In video SEO, i want to show only one category that randomly chosen. In one video, there are three or four categories, so i want to select only one automatically. Quote
Tech Support Posted November 20, 2023 Posted November 20, 2023 Is this video page description? E.g. <meta name="description"> in site header. Or where it is displayed. 1 Quote
viper Posted November 20, 2023 Author Posted November 20, 2023 17 minutes ago, Tech Support said: Is this video page description? E.g. <meta name="description"> in site header. Or where it is displayed. yes video page description Quote
Tech Support Posted November 20, 2023 Posted November 20, 2023 It could be possible to show random category there, but not recommended, because it will be random every time and Google doesn't like that. You can show the first one in Website UI -> Pages -> View video page template. Find this line: {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view}} Replace with this: {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view|replace:"%first_category%":$storage.video_view_video_view.categories[0].title}} Then you can use %first_category% instead of %categories_as_string% 1 Quote
viper Posted November 20, 2023 Author Posted November 20, 2023 9 minutes ago, Tech Support said: It could be possible to show random category there, but not recommended, because it will be random every time and Google doesn't like that. You can show the first one in Website UI -> Pages -> View video page template. Find this line: {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view}} Replace with this: {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view|replace:"%first_category%":$storage.video_view_video_view.categories[0].title}} Then you can use %first_category% instead of %categories_as_string% and give code for tag also Quote
Tech Support Posted November 20, 2023 Posted November 20, 2023 Same, but replace categories[0] with tags[0]. And %first_category% of cause. 1 Quote
viper Posted November 20, 2023 Author Posted November 20, 2023 51 minutes ago, Tech Support said: Same, but replace categories[0] with tags[0]. And %first_category% of cause. I cannot find a tag option. Please give me a code. and where i replace Quote
Tech Support Posted November 20, 2023 Posted November 20, 2023 {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view|replace:"%first_category%":$storage.video_view_video_view.categories[0].title|replace:"%first_tag%":$storage.video_view_video_view.tags[0].title}} 1 Quote
viper Posted November 20, 2023 Author Posted November 20, 2023 2 minutes ago, Tech Support said: {{assign var="page_description" value=$lang.html.video_details_description|replace_tokens:$storage.video_view_video_view|replace:"%first_category%":$storage.video_view_video_view.categories[0].title|replace:"%first_tag%":$storage.video_view_video_view.tags[0].title}} Thanks 😍 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.