Jump to content
Sign in to follow this  
888voip

How to edit pagelines_register_hook('pagelines_head')

Recommended Posts

888voip

Hello, We have included a version of header.php within a few other websites we run (on systems other than wordpress) to provide consistent design/functionality across our pages. This has worked fantastic thus far. The only problem we encountered is that pagelines_register_hook('pagelines_head') within header.php includes another title tag, and metta http-equiv which we do not need. We are curious how to remove these properly. We have considered creating a new hook and copying pagelines_head function, however it includes many other functions and is quite detailed. Do you have any advice on how to selectively remove lines from this hook or easily creating a new hook based on yours that does not include certain lines? Any help would be greatly appreciated, thank you.

Share this post


Link to post
Share on other sites
Simon

add a new filter, to filter the entire output and use str_replace() to swap the line you dont want with ''

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  

×