Jump to content
Sign in to follow this  
msialaska

pagelines_add_page Creates Drop down but drag and drop doesn't update live page

Recommended Posts

msialaska

Hey Guys, I am trying to create a custom page for Front Page and I have added the following to my functions: if ( function_exists( 'pagelines_add_page' ) ) pagelines_add_page('page-2', 'Front Page'); For some reason this adds the page to the Template Sections yet when I drag and drop objects into the page it says it saves but upon refresh the objects I dragged in there are not saved. Please help.

Share this post


Link to post
Share on other sites
msialaska
Never mind. I wasn't hitting 'Save Options' merely dragging and dropping. *face palm*

Share this post


Link to post
Share on other sites
msialaska
Actually - it isn't working I thought it was because I added page content and it showed up. But the template sections are NOT being saved; even though it says "Template Configuration Saved."

Share this post


Link to post
Share on other sites
kastelic
Have you also made a file called page.page-2.php or whatever in your platformbase folder, as per the instructions here: http://www.pagelines.com/docs/custom-sections

Share this post


Link to post
Share on other sites
michaeljohnprice
Have you done the following three steps as required in the comments in the functions.php file? For your example you could do the following. 1. Add a new file called page.front_page.php to the platformbase folder 2. Add /* Template Name: Your Page Name */ and Call to 'setup_pagelines_template();' to that file (see page.base.php as an example). Here this would work for your code: [code]

Share this post


Link to post
Share on other sites
msialaska
THANK YOU! Just a heads up on your documentation here at the site - when going to the WordPress codex when it says page-id it is referring to the numerical id not the slug of the name. I had my page named page.page-2.php. I would have it say to use the slug instead of id. That fixed it - thank you guys so much for the quick reply.

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  

×