viper Posted November 19 Share Posted November 19 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 Link to comment Share on other sites More sharing options...
Tech Support Posted November 20 Share Posted November 20 Not possible via language tokens like %categories_as_string%, which text is that? 1 Quote Link to comment Share on other sites More sharing options...
viper Posted November 20 Author Share Posted November 20 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 Link to comment Share on other sites More sharing options...
Tech Support Posted November 20 Share Posted November 20 Is this video page description? E.g. <meta name="description"> in site header. Or where it is displayed. 1 Quote Link to comment Share on other sites More sharing options...
viper Posted November 20 Author Share Posted November 20 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 Link to comment Share on other sites More sharing options...
Tech Support Posted November 20 Share Posted November 20 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 Link to comment Share on other sites More sharing options...
viper Posted November 20 Author Share Posted November 20 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 Link to comment Share on other sites More sharing options...
Tech Support Posted November 20 Share Posted November 20 Same, but replace categories[0] with tags[0]. And %first_category% of cause. 1 Quote Link to comment Share on other sites More sharing options...
viper Posted November 20 Author Share Posted November 20 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 Link to comment Share on other sites More sharing options...
Tech Support Posted November 20 Share Posted November 20 {{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 Link to comment Share on other sites More sharing options...
viper Posted November 20 Author Share Posted November 20 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 Link to comment Share on other sites More sharing options...
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.