Jump to content

Category Description in Category page


Recommended Posts

Hi,

     we see that when we add a category description it appears in the meta decription of the code (<meta name="description) 

Is there a way to add that description in the individual category page? Y see it uses Common Content List.

Can we add a code so it shows the description in each language?

Thanks in advance.

Link to comment
Share on other sites

I'm not sure I get your questions clearly.

Do you mean if it is possible to show different description for different categories? That would be possible, but better create a ticket for us to add it, since the code explanation is quite difficult.

Then I didn't get completely your question about each language. Do you mean you have multiple languages and you want custom description of each category to be translated to each language? That won't be supported at the moment. It is possible to translate the MAIN description to each different language, but if I get your question correctly, you want to show customized description for each category (this will use custom text fields) and then translate it to each language (this is not supported because custom fields do not support localization).

Link to comment
Share on other sites

We just want the SEO description to appear as text in each category for the viewers to see (right now only robots can see it). I know we could create a block but that wouldn't be as autiomatic. 

As the description is translated in "Texts" we would like it to appear translated.

Is that possible? 

Link to comment
Share on other sites

If you want to have HTML meta description to be displayed on page and visible for users, you can add the following code into page template:

{{if $page_description}}
<div>{{$page_description|mb_ucfirst}}</div>
{{/if}}

 

If you want this to happen only for category pages and you mean Common Content List page of the paysite theme, then you need to wrap this code like this:

{{if $page_description && $storage.list_videos_common_videos_content_list.list_type=='categories'}}
<div>{{$page_description|mb_ucfirst}}</div>
{{/if}}
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...