• 0
Sign in to follow this  
Followers 0

This may be a generic WP question, but how do I write custom PHP code within my PageLines site?

Question

Posted · Report post

I used to design the site myself but once I found WordPress and PageLines, I have migrated everything to this environment. I still have old code I would like to use on this new site but I don't want to write directly into the PageLines theme. That seems just like bad practice. What element should I consider? For example, I had a custom banner coded on the top of my old site with the weekly leaders for my football league. How would you tackle that? A Box? A Banner? If I can wrap my mind around the best way to do this, It will help me going forward. Thank you all!

Share this post


Link to post
Share on other sites

1 answer to this question

  • 0

Posted · Report post

You use what are called hooks. For Framework, you would install Pagelines Cusotomize from the store and then in your plugins folder you will have that plugin that contains style.css and functions.php. All your custom code can go in functions.php and then told to be added to any of dozens of hook locations throughout the theme. The plugin Action Map (in the PL store) can show you exactly where all these hooks reside. In the legacy docs for PlatformPro there is a good introduction to how hooks work. The syntax is the same for Framework it just goes in a different place: http://www.pagelines.com/docs/base-child-theme

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  
Followers 0