Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Altitude Pro and Centric Pro homepage as page templates in Education Pro?
- This topic has 8 replies, 3 voices, and was last updated 9 years ago by cubicle10.
-
AuthorPosts
-
March 23, 2015 at 7:56 pm #145395cubicle10Member
How do I mix and match various StudioPress theme pages/components into one theme?
I'd like to add to the Education Pro theme the option to use page templates that are the same as the homepages of both Altitude Pro and Centric Pro? Basically looking to keep the formatting/CSS/layout and widget options from the AP and CP themes within an EP child theme website.
Been searching through the forum and am still unsure of what exactly needs to be done. Hooks? Add page templates? Feel free to include links and/or explanation for a starting point.
Thank you,
E.J.
E.J.
Cubicle10March 23, 2015 at 8:17 pm #145396Brad DaltonParticipantYou can copy the front-page.php files of both Altitude Pro and Centric Pro and rename them something like page_altitude and page_centric. You'll also need to add a template name to each like the following example:
/* Template Name: Your Page Template */
You'll also need to go through the code in each file and find all classes which you can then search for in the style sheet of each theme to find all the CSS used for both home pages.
Thats a very basic guide but there's lots more specific detail.
March 23, 2015 at 9:22 pm #145404cubicle10MemberThanks Brad. So is this Frankenstein"ing" of theme hompeages the same process as creating a new page template within a theme?
Specific detail? As in requiring advanced coding skills?
Will I need to create separate CSS files to correspond to the homepages of the other themes or simply add to the Education Pro CSS file? << If so, where would I add it?
How about the corresponding code from functions.php? Should I do anything here.
Much appreciation, E.J.
E.J.
Cubicle10March 23, 2015 at 9:32 pm #145405cubicle10MemberThis reply has been marked as private.March 23, 2015 at 10:05 pm #145406Brad DaltonParticipantMarch 23, 2015 at 10:37 pm #145407Brad DaltonParticipantHere's a working example of Centric Pro themes front page converted to a page template
March 23, 2015 at 11:40 pm #145421Ren VenturaMemberCopying the front page templates to use as page templates is likely going to be a very messy process because you also have to take into account the fact that those front pages are "widgetized", meaning each of their respective themes has specialized widgets to use with the template; the templates aren't built to be used repeatedly on other pages. You couldn't just use the same widgets for each page running the templates because the content would be the same on every page. You'd need to register new widgets in Education for each page you want to use the templates on and output the widgets conditionally. There MIGHT be something that can be done to automate this but that's being optimistic. Otherwise, you'd need to use a different method for adding the content, such as custom fields, in which case you'd need to either work on keeping the same markup as with the widgetized version or change the CSS as needed to account for any changes in the markup that would effect the style, such as styles assigned to a particular section's widgets. Either way, it's going to be dirty.
Personally, I'd just avoid trying to hack the existing front templates and start from scratch using pieces from them as they fit in to my own solution.
Web & Software Developer & Blogger | RenVentura.com | Follow Me on Twitter @CLE_Ren
March 24, 2015 at 7:15 am #145450cubicle10Member@Ren
Appreciate the info. What do you mean by "start from scratch using pieces from them as they fit in to my own solution"?
Would it be best to use the theme with the homepage design I prefer and then build up the internal pages/theme features from other themes?
Thanks, E.J.
E.J.
Cubicle10March 25, 2015 at 10:53 am #145613 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.