• Resolved bebibu

    (@bebibu)


    Dear All,

    Previously we can change the page title pad group at parts/page-title like this…
    <h1><i class="fa fa-folder-open"></i><?php _e('Category:','hueman'); ?>

    change to another text we like
    <h1><i class="fa fa-folder-open"></i><?php _e('Lalala Category Lalala:','hueman'); ?>

    But in Huemen 3.2.2 the code change to…

    <?php elseif ( is_page() ): ?>
    		<h2><?php echo hu_get_page_title(); ?></h2>
    	<?php elseif ( is_search() ): ?>
    		<h1><?php echo hu_get_search_title(); ?></h1>
    	<?php elseif ( is_404() ): ?>
    		<h1><?php echo hu_get_404_title(); ?></h1>
    	<?php elseif ( is_author() ): ?>
    		<h1><?php echo hu_get_author_title(); ?></h1>
    	<?php elseif ( is_category() || is_tag() ): ?>
    		<h1><?php echo hu_get_term_page_title(); ?></h1>
    	<?php elseif ( is_day() || is_month() || is_year() ) : ?>
    		<h1><?php echo hu_get_date_archive_title(); ?></h1>
    	<?php else: ?>
        <?php if ( ! is_home() && ! hu_is_checked('blog-heading-enabled') ) : ?>
    		  <h2><?php the_title(); ?></h2>

    is it possible to chnge the page title group (category, tag, yeraly monthly archive text) to another text that we like?

    Thank you for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi bebibu. The functions to set the page title are in file /functions/init-front.php. In your example, you could copy the following function to a child theme functions.php file and make your changes there:

    function hu_get_term_page_title() {
        if ( is_category() ) {
          $title = sprintf('<i class="fa fa-folder-open"></i>%1$s <span>%2$s </span>',
              __('Category:','hueman'),
              single_cat_title('', false)
          );
        } else if ( is_tag() ) {
          $title = sprintf('<i class="fa fa-tags"></i>%1$s <span>%2$s </span>',
              __('Tagged:','hueman'),
              single_tag_title('', false)
          );
        }
        return $title;
    }
    • This reply was modified 8 years, 2 months ago by bdbrown.
    Thread Starter bebibu

    (@bebibu)

    ok problem solved.

    thank you bdbrown ??

    Glad you got it fixed. If you don’t have any further questions here please mark the topic as Resolved. Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Change Page Titile Pad Group?’ is closed to new replies.