• Resolved redflo

    (@redflo)


    Using the HoneyBee theme, there is a “page-title” in a “page-title-section” at the top of each blog post, search results, tag pages etc.
    Very sadly, we cannot edit the text for that page title.
    For blog posts, the page title is set to be the blog title.
    As a result, the blog title appears once in the page-title-section, and then once more right below, at the start of your post.
    This doesn’t look good to me, so I’ve been hiding the page title for single-post using custom CSS.

    However, I thought that would be very nice to be able to change the content of the page title, for example, by showing the post category instead of the post title.
    Or maybe just an option to remove it without using custom CSS.

    I guess it would take some time to include that in your theme UI customisation, if you ever decide to do it.

    Meanwhile I would appreciate guidance as to how to modify it manually in the PHP file.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi, redflo

    Thanks for contacting us!

    The page title section is showing the title of the pages, posts, etc.
    There is a setting to change the title of the blog page title, if you want to change it Go to Appearance >> Customize >> HoneyPress theme options >> Blog Page and change the main title.
    If you want to hide them you need to write the custom CSS, we will provide this.

    Thanks
    Rishabh

    Thread Starter redflo

    (@redflo)

    Sadly, changing the main title from
    Appearance >> Customize >> HoneyPress theme options >> Blog Page
    doesn’t do anything for me.

    I know how to hide it with custom CSS:

    .single-post .page-title{
        display: none;
    }

    But could you tell me how I can show the post category instead of the post title (this would be only for the single post page). This should be possible by editing a PHP file, right ?

    To show the post category instead of the post title, you need to add the below code in the breadcrumbs.php file after line no. 108. See the screenshot.

    else if ( is_single() )
    { 
    	if(has_category()):
    		echo '<h2 class="text-white">';
    		foreach((get_the_category()) as $category) { 
    		    echo $category->cat_name . ' '; 
    		} 
    		echo '</h2>';
    	endif;										
    }

    Let me know for any confusion!

    Thanks
    Rishabh

    Thread Starter redflo

    (@redflo)

    This is exactly what I needed to know.
    Thank you!

    Glad to help you!

    If you like our Theme & Support, kindly rate us HERE.

    Thanks
    Rishabh

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page title’ is closed to new replies.