WordPress.org

Ready to get started?Download WordPress

Forums

CataBlog
[resolved] Rename category pages from "Blog Archives" to the Catablog category name (9 posts)

  1. gcb111
    Member
    Posted 1 year ago #

    I want to change the page heading on my catablog category pages from "Blog Archives" to the name of the catablog category for each page. Can anyone help?
    Thanks!

    http://wordpress.org/extend/plugins/catablog/

  2. mbrsolution
    Member
    Posted 1 year ago #

    Hello gcb111, are you referring to the Individual Pages Slug or Category Pages Slug?

    Can you post your URL here or a screen dump so that we can check further your request.

    Kind regards

  3. gcb111
    Member
    Posted 1 year ago #

    CATABLOG category pages. In archive.php is this line:

    <?php _e( 'Blog Archives', 'catchbox' ); ?>

    I don't want the Catablog Category Page to print "Blog Archives" at the top of the page. I want it to print the Catablog Category Name.

  4. mbrsolution
    Member
    Posted 1 year ago #

    Hello can you publish your url here so that I can see if you don't mind.

    Kind regards

  5. mbrsolution
    Member
    Posted 1 year ago #

    Hello again, if none of my suggestion help you. You might want to consider integrating CataBlog into your theme. Simply by adding two files:

    The files to add:

    Single CataBlog Item Page: single-catablog-items.php
    CataBlog Category Archive: taxonomy-catablog-terms.php

    You can read more about it in Zach's website, Displaying Your Catalog In Post.

    I hope this helps you further.

    Kind regards

  6. gcb111
    Member
    Posted 1 year ago #

    I figured it out. I replaced this line in archive.php:
    <?php _e( 'Blog Archives', 'catchbox' ); ?>

    with this line:
    <p><?php single_cat_title(); ?></p>

    Yay!

  7. mbrsolution
    Member
    Posted 1 year ago #

    Hi, that is good news :) Well done.

  8. mhonolog
    Member
    Posted 1 year ago #

    Hi, tried your solution, its not working for me. Would you please help me check what I need to fix.

    Here's my archive.php

    <?php
    	global $SMTheme;
    
    	get_header();
    ?>
    			<h1 class="page-title"><?php
    
    				   /* If this is a daily archive */
    				   if (is_day()) { printf( $SMTheme->_( 'dailyarchives' ), get_the_date() ); 
    
    					/* If this is a monthly archive */
    					} elseif (is_month()) { printf( $SMTheme->_( 'monthlyarchives' ), get_the_date('F Y') );
    
    					/* If this is a yearly archive */
    					} elseif (is_year()) { printf( $SMTheme->_( 'yearlyarchives' ), get_the_date('Y') );
    
    					/* If this is a general archive */
    					} else { echo $SMTheme->_( 'blogarchives' ); }
    			?></h1>
    			<?php get_template_part('theloop'); ?>
    
    			<?php get_template_part('navigation'); ?>
    
    <?php
    	get_footer();
    ?>

    And how would you integrate a dropdown menu in each category when its listed?

  9. mbrsolution
    Member
    Posted 1 year ago #

    Hello @mhonolog, have you tried to change the following settings?

    Admin >> CataBlog >> Options >> Public >> Individual Pages Slug: and Category Pages Slug:

    Let me know if this helps you.

    Kind regards

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic