Question – Archive Page Title
-
I am working with v. 3.9.2 on a staging site trying to deal with all of the changes brought about by the upgrade.
I noticed that on archive pages there is now a big green banner with the words, “You are browsing archives for / Category: [Category Name] / [Category Description]”
I wanted to get rid of that but did not find a way within the theme customization options to fix it.
I’m running a child theme, so I figured I could set my own archive.php template–
But I was wondering whether there is an easier way to turn off the “alert” within the theme. When I looked at the template it had this code:
if ( evolve_theme_mod( 'evl_category_page_title', '1' ) == '1' ) { echo '<div class="alert alert-success mb-5" role="alert"><p>' . __( 'You are browsing archives for', 'evolve' ) . '</p>'; the_archive_title( '<h1 class="page-title">', '</h1>' ); the_archive_description( '<div class="lead">', '</div>' ); echo '</div>';Whenever I see an “if” statement in a template, I assume there must be something within the theme to control the settings — so that template would suggest that there must be some way I can set “evl_category_page_title” to false…. but again, I couldn’t find a way to do it.
If there is not a way to do that, might I suggest a simple change to the archive.php template for the next update? If you would simply add another class to the div in addition to the standard bootstrap classes, then users could simply remove the alert box and contents with a simple display:none CSS directive. I was actually very surprised when I looked at the source code and that wasn’t already there.
The topic ‘Question – Archive Page Title’ is closed to new replies.
