
How to display category name as a page title,
e.g. http://sitename.com/category/apple/
I would like 'Apple' to be the title of that page in the content.
How to display category name as a page title,
e.g. http://sitename.com/category/apple/
I would like 'Apple' to be the title of that page in the content.
Hello,
When a category is selected, it uses Default template. So please follow these steps:
1. Open Default template from the list.
2. Navigate Insert tab >> More >> Page Title and insert it to the desired location on page. This page title will be the name of selected category.
Sincerely,
Nettie,
BillionDigital Team
I did what you showed me and its showing this as the title:
Category_name(NS)Site_name .... (NS) means no space
I actually wanted to only show the category name on its own.
Would you please help me.
I did what you showed me and its showing this as the title: Category_name(NS)Site_name .... (NS) means no space I actually wanted to only show the category name on its own. Would you please help me.Hi,
Please try adding CMS Code control (Insert tab >> More) with the following code:
<h1><?php wp_title('',true,'right'); ?></h1>
It should output a title only.
Thank you,
Olivia
I added a CMS code and inserted the code it showed
Category_name(S)Site_name .... (S) means space
It output the category title and site name.
I want it to output the category name as the title.
I added a CMS code and inserted the code it showed Category_name(S)Site_name .... (S) means space It output the category title and site name. I want it to output the category name as the title.Hi,
Hm, could you please try this function:
<?php single_cat_title(''); ?>
Please let us know the result.
Thank you,
Olivia
Ok i find a solution:
When a category is selected, it uses Default template. So please follow these steps:
1. Open Default template from the list.
2. Navigate Insert tab >> More >> CMS code and insert it to the desired location on page. (top page for me)
This page show the description of selected category.
the code is:
<?php echo category_description();?>
Ok i find a solution: When a category is selected, it uses Default template. So please follow these steps: 1. Open Default template from the list. 2. Navigate Insert tab >> More >> CMS code and insert it to the desired location on page. (top page for me) This page show the description of selected category. the code is: <?php echo category_description();?>Thanks for sharing the solution!
Sincerely,
Themler team
I wanted to test the same for RailsCarma
I wanted to test the same for [RailsCarma][1] [1]: https://www.railscarma.com