-
AuthorPosts
-
June 19, 2014 at 8:34 am #281036
I have created a custom posts and on an individual post pages the page title is “Blog”. I would like to delete this can you advise where this is please?
June 19, 2014 at 9:45 am #281064Hey!
Try adding this at the very end of your theme functions.php file:
add_filter('avf_title_args', 'hide_title_func', 10, 2); function hide_title_func($args,$id) { if(is_singular('_POST_TYPE_SLUG_')){ $args['title'] = ""; $args['link'] = ""; $args['heading'] = 'span'; } return $args; }Cheers!
JosueJuly 9, 2014 at 3:52 am #288778Hi Josue
Thanks for this. I could be wrong but from the look of this code I may not have been to clear on what I am trying to achieve. Its actually the word “Blog” at the top NOT the individual blogs titles.http://travel.hubspokes.com.au/wp-content/uploads/2014/07/9-07-2014-11-47-22-AM.jpg
Cheers Gavin
July 9, 2014 at 3:57 am #288780Hey Gavin!
Did you try the code? can you post a link to the website please?
Cheers!
JosueJuly 9, 2014 at 4:35 am #288798I just did. I put it in the functions.php of child which I am using.
http://travel.hubspokes.com.au/coach_tours/9-day-irish-spirit-tour/
http://travel.hubspokes.com.au/blog/
Links to both the custom post type and the actual blog. Only wanted to do on custom post types but not a major problem if it is on both.
Can seem to see any change on either.
July 9, 2014 at 4:39 am #288800Hi,
Can you please create me an administrator account? post it here as a private reply.
Regards,
JosueJuly 9, 2014 at 4:45 am #288804This reply has been marked as private.July 9, 2014 at 4:57 am #288809Done:
http://travel.hubspokes.com.au/coach_tours/9-day-irish-spirit-tour/You needed to replace “_POST_TYPE_SLUG_” by “coach_tours”.
Cheers!
JosueJuly 9, 2014 at 6:40 am #288864Thanks Josue Really appreciate your support and your promptness!
July 9, 2014 at 6:44 am #288865You are welcome, always glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.
