Community Forums › Forums › Archived Forums › Design Tips and Tricks › Removing page title from portfolio pages
Tagged: page titles, portfolio
- This topic has 7 replies, 3 voices, and was last updated 10 years, 6 months ago by
Harley130.
-
AuthorPosts
-
June 17, 2015 at 11:11 am #156538
jamesburden
MemberHey everyone - hoping someone can help with this query.
I'm building a site using Altitude Pro. I've got Genesis Title Toggle installed so that I don't have the default page titles present on the pages. However, if my page is a Portfolio page (e.g. http://bibleleagueca.wpengine.com/portfolio/adult-bible-based-literacy-in-india/) then the Title is still there. Is there a way to remove page titles for portfolio pages? Is it possible to edit the plugin to do that? Or on a page by page basis? How would I do that?
Thanks so much for your assistance.
James
http://bibleleagueca.wpengine.com/portfolio/adult-bible-based-literacy-in-india/June 17, 2015 at 12:27 pm #156544Christoph
MemberHi James,
this should point you in the right direction:
https://github.com/billerickson/Genesis-Title-Toggle/issues/4
June 17, 2015 at 12:51 pm #156548jamesburden
MemberThanks Christoph - that definitely looks like it will solve the problem. Two quick follow up questions:
1: Where do I put that code? Does it go into the plugin php file, or into functions.php? I'm not that familiar with php code so could do with a pointer on where it should be inserted.
2: Is there a way to find out for sure what the slug is of my custom post type? I presume it's 'portfolio', but would be good if I could confirm that somehow.
Thanks so much.
June 17, 2015 at 12:59 pm #156552jamesburden
MemberBTW, I tried adding it to the plugin php file and it disabled the plugin as it had corrupted it. I also tried adding it to the functions.php file (which is where the github article seemed to imply it should go) and it results in the white screen of death. So I've rolled back to my backup, but just not sure where to place that code.
June 17, 2015 at 1:07 pm #156554Christoph
MemberHi James,
the code goes into the function.php. You probably included the <?php when you pasted the code.
This is all you should copy into the functions.php
/** * Add Genesis Title Toggle to Events * * @link https://github.com/billerickson/Genesis-Title-Toggle/issues/4 * @author Bill Erickson * * @param array $post_types * @return array */ function be_title_toggle_on_events( $post_types ) { $post_types[] = 'events'; return $post_types; } add_filter( 'be_title_toggle_post_types', 'be_title_toggle_on_events' );I would just try "portfolio".
If it is not working, we'll have to dig a bit deeper into the code.
June 17, 2015 at 1:21 pm #156557jamesburden
MemberAwesome! Thanks so much. Really appreciate your help. Works perfectly. Buying you a coffee right now. 🙂
June 17, 2015 at 2:09 pm #156563Christoph
MemberYou are welcome! 🙂
Glad I could help.
July 27, 2015 at 11:11 am #160599Harley130
MemberThanks guys, this post was helpful to me to apply the solution to the portfolio posts to hide the title by just changing the slug
-
AuthorPosts
- The topic ‘Removing page title from portfolio pages’ is closed to new replies.