Jump to content
Sign in to follow this  
alisamski

Category Title

Recommended Posts

alisamski+    8
alisamski

Need to add a category title.... this code worked in PlatformPro but not in Framework. Please advise. I have the titles enabled in theme.

//ADD CATEGORY TITLE AT TOP OF CAT PAGES
	add_action('pagelines_inside_top_theloop','cat_title');
	function cat_title(){
		if ( is_category() ) {
			echo '

'.single_cat_title('',false).'

'; } }[/code]

Share this post


Link to post
Share on other sites
Rob    547
Rob
Have you gone to Dashboard > PageLines > Templates then clicked in the image map where it says Content Area (right image)? Down below that, you should see "Category" in a group of templates. Below that, you'll see drag and drop options. Make sure Posts Info is at the top of your category page above PostLoop. This should show "Currently viewing the (category name):"

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
alisamski+    8
alisamski
Yes... it is clicked... however I wanted a regular title as in the Pages on the Category Page. So I put this code in CSS to get rid of the currently viewing... [code].current_posts_info{display:none;}[/code] So I guess the question now is, how can I display the title of the Category on the category page the same as on other pages in Frameworks

Share this post


Link to post
Share on other sites
alisamski+    8
alisamski
Also tried this.... and still not working... [code]//ADD CATEGORY TITLE AT TOP OF CAT PAGES add_action('pagelines_inside_top_theloop','cat_title'); function cat_title(){ if ( is_category() ) { ?>

Share this post


Link to post
Share on other sites
alisamski+    8
alisamski
Yes. In the base theme

Share this post


Link to post
Share on other sites
alisamski+    8
alisamski
Got it... Here is the code to add category titles on category pages similiar to page titles. Frameworks > base theme > functions.php [code]//ADD CATEGORY TITLE AT TOP OF CAT PAGES add_action('pagelines_inside_top_postloop','cat_title'); function cat_title(){ if ( is_category() ) { ?>

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  

×