mccyuq 0 Report post Posted July 3, 2012 Hi, I am creating a MU site using platformpro, and for every multisite i am creating child theme to enable individual styling, one of my child theme requires to display the info of all the registered users, and i want to create a custom theme so i can add my html/php code to it, i followed the directions and created a file page.about.php (in my child theme folder) and added the hook to functions.php if ( function_exists( 'pagelines_add_page' ) ) pagelines_add_page('about', 'About Theme'); It does display me my about theme in the drop down when i go to add new page. But i cant seem to get how can i add my custom code on top of it ah ur system doesnt allow me to upload a screenshot or am i missing something on that. So this is something i am trying to achieve """"""" <?php /* Template Name: About Theme */ setup_pagelines_template(); Yuan Phone: Email: mail Offers a wide variety of financial services designed to look after your assets, protect your future income and help you increase your wealth.? Read full bio This file resides in my child theme folder (page.about.php) Share this post Link to post Share on other sites
mccyuq 0 Report post Posted July 3, 2012 hey support i found a way to add the hook , and it shows up, but now the problem is it shows on all the pages where i just want to show it on my theme page The hook add_action('pagelines_before_maincontent', 'author_code'); // function name function author_code(){ ?> html content Share this post Link to post Share on other sites Danny+ 1,327 Report post Posted July 3, 2012 Hi, PHP isn't my forte however, I think you will need to us the is_page() conditional. Look at the link below for more information. http://codex.wordpress.org/Function_Reference/is_page Please search our forums, before posting! Share this post Link to post Share on other sites mccyuq 0 Report post Posted July 4, 2012 Thanks worked like a charm Share this post Link to post Share on other sites Rob 547 Report post Posted July 4, 2012 Great. I will accept Danny's answer for you. Former PageLines Moderator, Food Expert and Raconteur 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 Login via PageLines Signup To PageLines Sign in to follow this Followers 0
Danny+ 1,327 Report post Posted July 3, 2012 Hi, PHP isn't my forte however, I think you will need to us the is_page() conditional. Look at the link below for more information. http://codex.wordpress.org/Function_Reference/is_page Please search our forums, before posting! Share this post Link to post Share on other sites
mccyuq 0 Report post Posted July 4, 2012 Thanks worked like a charm Share this post Link to post Share on other sites
Rob 547 Report post Posted July 4, 2012 Great. I will accept Danny's answer for you. Former PageLines Moderator, Food Expert and Raconteur Share this post Link to post Share on other sites