Support only during business hours : Monday to friday, from 8:30 am – 5:30 pm CEST

Due to the decrease in our staff due to vacations, our response time may be longer.

Be sure we're doing our best to manage your topic as soon as possible.

H1 title on rubric detail page

This topic is resolved
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • Ondrej Hastík
    Participant
    • 4 Topics
    • 13 Posts
    @ondrejhastik

    Situation – page News has H1 “News”. If I add a new item to menu – Posts rubric there is also H1 “News”.

    My client want that if I’m on specific Rubric page like Tips and Tricks or Signals, that the name of rubric will be in H1.

    What is your recommendation

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @ondrejhastik,

    Could you tell me what’s the name of the page associated with posts please? I think that Cera will display its name at the top of the page and inside the menu item. (Please see attached.)

    Changing it to “Tips and tricks” or “Signals” should solve this.

    Cheers,

    Ondrej Hastík
    Participant
    • 4 Topics
    • 13 Posts
    @ondrejhastik

    I try to explain better.

    I have several Post Categories. On default /news there is a News page, where are post from several categories. What I want is to have solo page for each category.

    How to how to achieve it?

    Thanks for you help.

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @ondrejhastik,

    Could you try to add your categories to your navigation menus please? (Please see attached.)
    This will add the URL to your news page by the selected category.

    Maybe, that’s what you’re looking for.

    Best,

    Ondrej Hastík
    Participant
    • 4 Topics
    • 13 Posts
    @ondrejhastik

    I did that week ago. But if I click on this page the H1 title is still News not name of the category.

    For example if I go to News, there are posts from all categories and h1 of this page is News – that is right.
    But if I click in the menu od link to category Signals on the page are posts from category Signals – that is ok, but h1 is styl News.

    Ondrej Hastík
    Participant
    • 4 Topics
    • 13 Posts
    @ondrejhastik

    Same situation on Cera demo. If client wants a page with only one category, he want H1 to be name of category. Hot to achive that?

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Hi @ondrejhastik,

    To change this, simply add the following code snippet to your website:

    /**
     * Change the title from the posts page name to the archive title.
     *
     * @param array $args The array arguments to set the custom header.
     *
     * @return array      The udpated array arguments to set the custom header.
     */
    function cera_custom_add_custom_header_args( $args = array() ) {
    	if ( is_category() ) {
    		$args['title']    = get_the_archive_title();
    		$args['subtitle'] = '<span class="excerpt">' . get_the_archive_description() . '</span>';
    	}
    	return $args;
    }
    add_filter( 'grimlock_custom_header_args', 'cera_custom_add_custom_header_args' , 1000, 1 );

    This will display the category title and description in your Header for all category pages. (Please see attached.)

    To add this code snippet to your site, we recommend that you use a the Code Snippets plugin (https://wordpress.org/plugins/code-snippets/). If you have never activated this plugin, please read the following post:

    Adding Custom PHP Without Changing Your Child Theme

    Please also note that we don’t provide any theme customization. So, you shouldn’t expect other snippets from us unless it’s to fix an issue stemming from our own codebase. We always try our best to help theme users whenever we can and only provide code snippets out of courtesy to prevent them from waiting for the next update.

    Regards,

    Ondrej Hastík
    Participant
    • 4 Topics
    • 13 Posts
    @ondrejhastik

    That is perfect. I have just tested it. Thank you so much!

    A know that this customization is not part of your technical support. I appreciate it and will recommend your templates for my clients.

    Wish you the best in these weird days!

    Themosaurusrex
    Keymaster
    Themosaurus Support
    • 0 Topics
    • 2048 Posts
    @themosaurusrex

    Thank you very much @ondrejhastik! We always like to see our work appreciated! ?

    Stay safe too. Let’s hope this crisis doesn’t continue for too long.

    Best,

Viewing 9 posts - 1 through 9 (of 9 total)

The topic ‘H1 title on rubric detail page’ is closed to new replies.

Troubleshooting Demo Imports

You're trying to setup your theme but you're experiencing errors when importing the demo content? Or you've just followed the setup guide but your website doesn't look exactly like our demo? These are common issues for which you can find easy and quick fixes.

Happy With our Support So Far?

Feel free to review our theme on Themeforest! It helps us making our products more known to new potential customers, which allow us more time to improve the quality and develop new features. #SharingIsCaring ❤️

Discover MatchPress

Skip • Like • Super-Like

Add powerful matching features like Member likes, skips, super likes, conditional private messaging and much more.

Setup Your Cera or Gwangi powered Community Website and Turn it into an iOS and Android App

15% discount for Cera users

To unleash the full power of your Cera or Gwangi theme, we have partnered with the Zipline team. Your community website can now be fully setup and turned into your very own custom app for iOS and Android.

Whether you've newly acquired the theme or already got your site up and running, Zipline got you covered. And we got you an incredible discount.

Holiday, Weather & Festive effects
to pimp your WordPress Site