Jump to content


Photo

Categories Title does not show up on page.


Best Answer Rob , 22 April 2013 - 10:00 PM

Hi @vburnham

 

I'm not sure that you want to have individual attention to this issue, but you've asked your question in a topic for another, now outdated product.

 

Please open a new topic under the correct product so that we may provide you with the best, most up-to-date solutions.  Many of the solutions proposed here won't work in PageLines Framework, and still others exist in the Framework that don't work in PlatformPro.

 

I'm sure you understand.  Thanks.

Go to the full post


  • Please log in to reply
16 replies to this topic

#1 hughes1974

hughes1974

    Member

  • Members
  • 15 posts
  • Country: Country Flag

Posted 30 November 2011 - 12:19 AM

I want the Categories title to show up on my page, does anyone know how to do this? http://goldenstatebu...-family/callas/ I would like to have the title Callas on the top of the page above the post thumbnails.

#2 Sourena

Sourena

    Advocate

  • Members

  • 563 posts
  • LocationWilliamstown, MA
  • Framework Version:2.4.1
  • Country: Country Flag

Posted 30 November 2011 - 02:16 AM

This might help you: http://www.pagecolumn.com/

#3 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 30 November 2011 - 05:33 PM

You could create a page for the category and check the box in the Dashboard > PlatformPro > Blog and Posts to "Automatically show Page titles"

#4 hughes1974

hughes1974

    Member

  • Members
  • 15 posts
  • Country: Country Flag

Posted 01 December 2011 - 03:11 PM

That would be great, but how would i load the posts for that category on that page?

#5 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 01 December 2011 - 07:41 PM

There are plugins like Special Recent Posts or others that will list posts in a variety of ways. I use Multi Column Taxonomy List. Here's an example: http://www.epicurus....ingredient-type

#6 hughes1974

hughes1974

    Member

  • Members
  • 15 posts
  • Country: Country Flag

Posted 01 December 2011 - 11:52 PM

Thank you all for your help, but I am not sure if I am explaining in right. I have a category page with all my posts that fall under that category loading on it, just like a blog. But I want the page to have the title of the category that i choose to load on top. Here is the page. I would like to have the title Callas load at the top, which is the category name that all the post are under. http://goldenstatebu...-family/callas/

#7 kastelic

kastelic

    Advocate

  • Members

  • 3081 posts
  • Country: Country Flag

Posted 02 December 2011 - 12:04 AM

Hi, you can paste this in platformbase/functions.php assuming you have Base activated:
 
	//ADD CATEGORY TITLE AT TOP OF CAT PAGES
	add_action('pagelines_before_maincontent','cat_title');
	function cat_title(){
		if ( is_category() ) {
		?>
	        <h2 class="cat-title">Category: <?php single_cat_title(); ?></h2>
	    <?php
		}
	}


#8 hughes1974

hughes1974

    Member

  • Members
  • 15 posts
  • Country: Country Flag

Posted 02 December 2011 - 12:29 AM

Kastelic, you are the man... Thank you for all your help... I change it a little: //ADD CATEGORY TITLE AT TOP OF CAT PAGES add_action('pagelines_inside_top_theloop','cat_title'); function cat_title(){ if ( is_category() ) { ?>


#9 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 15 March 2012 - 08:19 PM

works in platform pro... cannot get this to work in Framework

#10 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 15 March 2012 - 09:32 PM

Pagelines Frameworks uses different hooks: http://api.pagelines.com/hooks

#11 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 15 March 2012 - 10:30 PM

Can you please advise what needs to change? Or more specific this is what I've tried. I have a question out here.

#12 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 15 March 2012 - 11:13 PM

'pagelines_inside_top_postloop'

#13 alisamski

alisamski

    Advocate

  • Members

  • 485 posts
  • Framework Version:DMS 2 | DMS 1 | Frameworks | Child Theme
  • Country: Country Flag

Posted 16 March 2012 - 02:12 AM

Fab! Thank you Simon.... posting complete code for functions.php in Frameworks
 //ADD CATEGORY TITLE AT TOP OF CAT PAGES
	add_action('pagelines_inside_top_postloop','cat_title');
	function cat_title(){
	if ( is_category() ) {
	?>
	<h2 class="cat-title"><?php single_cat_title(); ?></h2>
	<?php
	}
	}


#14 vburnham

vburnham

    Advanced Member

  • Members
  • 44 posts
  • Country: Country Flag

Posted 22 April 2013 - 03:17 AM

Can you tell me where exactly I would put this code in my functions.php. Everytime I do I get an error and my site breaks. Thanks!



#15 Danny

Danny

    Is Awesome!

  • Moderators
  • 17945 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 22 April 2013 - 07:32 AM

All hooks go must go into either your child theme or customise plugins functions.php file. If you edit the core functions.php file, you will cause numerous errors on your site. All this information is provided on our customisation documentation.

 

http://support.pagel.../customization/



#16 vburnham

vburnham

    Advanced Member

  • Members
  • 44 posts
  • Country: Country Flag

Posted 22 April 2013 - 09:45 PM

I'm sorry I'm probably driving you crazy but I added the Customize plugin and found the functions.php but I'm still unsure as the exact location I need to place the code and if I replace any code in there with anything. Thanks



#17 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 22 April 2013 - 10:00 PM   Best Answer

Hi @vburnham

 

I'm not sure that you want to have individual attention to this issue, but you've asked your question in a topic for another, now outdated product.

 

Please open a new topic under the correct product so that we may provide you with the best, most up-to-date solutions.  Many of the solutions proposed here won't work in PageLines Framework, and still others exist in the Framework that don't work in PlatformPro.

 

I'm sure you understand.  Thanks.