• 0

PageLines category title h1


Question

Posted · Report post

Hello, I would like the category pages not to show the .current_posts_info saying "currently viewing category 'Catname'" but instead just to show the category name in an h1 style. Is it easy to do? (I'm not good at php!)

Share this post


Link to post
Share on other sites

9 answers to this question

  • 0

Posted · Report post

Glad you got it working :-)

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hello xcel7 

 

Do you have a link to your site please? 

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Bonjour,

 

I don't see any category text on that site.  Did you already hide it with CSS?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

I found it!

 

You need to install PageLines Base Theme, but do not activate it yet. 

 

FTP then to wp-content/themes/pagelines/sections and download postsinfo (a folder). Download the entire folder.

 

Navigate then to wp-content/themes/pagelines-template-theme and upload the postsinfo folder to wp-content/themes/pagelines-template-theme/sections.

 

Once uploaded, open the folder in FTP, and edit the file section.php.

 

Edit this line to remove Currently viewing the category: 

printf( '%s <strong>"%s"</strong>', __( 'Currently viewing the category:', 'pagelines' ), single_cat_title( false, false ) );

Just make it:

printf( '%s <strong>"%s"</strong>', __( '', 'pagelines' ), single_cat_title( false, false ) );

I am not sure what will happen if you wrapped single_cat_title in <h1> tags, like so.

printf( '%s <strong>"%s"</strong>', __( '', 'pagelines' ), <h1>single_cat_title</h1>( false, false ) );

Save the file and upload.

 

Navigate to Dashboard > Appearance > Themes and activate Base Theme.

 

Let us know how it goes.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks Rob,

Yes, it works, but:

• the commas are not removed

• what about my child theme "Mud" ?

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi there,

 

You can edit the comma manually out of the code. If you're using a child theme then you'd upload the section into the sections folder so it overrides the main postsinfo section in the core and uses the new one setup in the mud theme.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Hi James,

Thanks a lot, it works very well! I had trouble fixing it but I finaly succeeded

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now