Jump to content
Sign in to follow this  
funken

Hook to add page title to posts page

Recommended Posts

funken

Trying to add a page title to a posts page. Here's what I've got so far: ` add_action('pagelines_inside_top_theloop','recent_events'); function recent_events(){?> <?php if (is_page('recent-events')):?>

Recent Events

<?php endif; } ` I've gone over and over it. Any tips? Doesn't seem to be working. The page slug is 'recent-events'. Thanks!

Share this post


Link to post
Share on other sites
timlinson

Hey Ken, looks fine to me (also works fine on my local install). If you're putting this in platformbase/functions.php (as recommended), double check that PlatformBase is activated in Appearance>Themes.

Share this post


Link to post
Share on other sites
extremiaoy
Hello guys, would be great to have an option in the dashboard to do this, wouldn't it. Can anyone tell whether this can be done without tampering the platform and/or template code? 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  

×