Jump to content
Sign in to follow this  
galluzzino

Category title on category page

Recommended Posts

galluzzino

on Platform Pro each category page displayed the category name at the top of the loop. I updated my site to Pagelines 2.0 and now the title is not showing any longer. I had this on my function.php file: add_action('pagelines_inside_top_theloop','cat_title'); function cat_title(){?> <?php if (is_category()):?>

<?php echo single_cat_title(); ?>

<?php endif;} but is not working on 2.0 Thanks

Share this post


Link to post
Share on other sites
Danny
Hi Galluzzino Try this and let us know if this works for you. Replace [code]pagelines_inside_top_theloop[/code] With [code]pagelines_loop_before_post_content[/code]

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
galluzzino
Nope, sorry, it doesn't work. If a turn action map on I see: pagelines_content_before_maincolumn loop_start the_post

Share this post


Link to post
Share on other sites
leografie
I do something similar: add_action('pagelines_content_before_maincolumn', 'add_intro_to_category'); function add_intro_to_category(){ ?>



Share this post


Link to post
Share on other sites
galluzzino
Actually this one worked for me. add_action('loop_start', 'add_intro_to_category'); function add_intro_to_category(){?>


Share this post


Link to post
Share on other sites
leografie
I just installed the Action Map plugin from the store. With it I found the loop_start hook so will use that too. Thanks.

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

Sign in to follow this  

×