How to copy a page template to a custom post using cornerstone?

We have a page that has been created in Cornerstone.
We have a custom post type that correctly loads an empty page template.

I can save the entire page as a template but when I go into Cornerstone for the custom post type and access the templates the page that I saved is not there.

How can something so simply be so complicated.

Please can you help.

In other words, how do you take a page that has been created using the standard WP Pages post-type, export it and then import this page into a custom-post type so it can be accessed from the templates menu.

Hi Jason,

Thanks for reaching out.
Are you trying to access the Saved Template from the Page Template option of the Custom Post Type? If that is the case, the same template can be loaded into any other pages but can’t be used like the Page Template we used in WordPress. I would suggest you use the Layout Builder and create a layout similar to that template and assign it to the specific custom post type that will do the same which you want.
Please go through the following article and video which explains it.



If that is not the case and you are trying to point out something else, please provide any screenshot marked with the issue or any video that helps us to recognize what exactly you are trying to do.

Thanks

I am trying to take a page that has been created in the WPADMIN section PAGES and use this page in a custom post type that I have been created.

I do not mind how I get that page into the custom post type section, but that is all I want to do.

It seems you are telling me that the only way to do this is to rebuild the template from scratch within the custom post type.

In other words you are telling me that the only way to build a page within a custom post type is to physically build the template from scratch inside that custom post type.

Is that what you are telling me? The theme has no way to export a page from PAGES and import that page into a custom post type section?

Thanks

Hello Jason,

Please have a look at this given video in the secure note to learn more about how to export a template or save the section as a template so that you can use it on another page or another website page by importing it

To import the saved template into the page/post I would suggest you go to the Page/Post—>Clcik on this icon—>Library---->Section—>Add.

Hope it helps
Thanks

Thank you, I think I have now finally understood this.

Can you explain how the footers are working because the footer that is currently being used across the website on the posts and pages is not appearing in the footer of this imported page.

Is there some kind of enablement option that needs to be done so the cornerstone footer loads at the bottom of the page like is does on the other pages?

Hi Jason,

If you are using the Footer that is assigned to the Entire Site should come in all the pages. If that is not coming in all the pages, please let us know the pages which do not load the footer. There might be broken HTML or any error which does not let the footer load on these pages. I would request you please provide login credentials for your site in a secure note to examine it further, including:

– WordPress Site URL & Login URL
– WordPress Admin username/password
– List of pages where the footer is not loaded.

To create a secure note, click the key icon underneath any of your posts.

Thanks

added thanks.

Hi Jason,

I have checked and found that the Connector posts are assigned to the Template which has been overridden in the CHild Theme. The template is not showing the Footer, whereas the Default template is showing the footer correctly. I have checked by creating a blank Connector which shows the Header but not the footer. I would suggest you check the modified template once.
Please remember that we don’t provide any support to the custom post type or modified child theme-related issues. If you are not proficient, I would suggest you hire a developer who can assist you to do the customization or you can avail of our newly launched service called One, where we answer the questions beyond normal theme support.

Thanks

@tristup

I’m not overly happy about this. DIVI, AVADA & GENESIS themes all make provisions for what you ask me to cover by your separate and newly launched ONE service.

At the most basic level your theme should support, or at least provide clear instructions for how to hook custom post types to the theme in a clear and documented way. These post types are a very much used way for Developers to organize the different types of pages in a website.

We have literally spent hours trying to work out the nuances of your theme and we have Developers and Designers use Wordpress on a daily basis, so we are not newbies.

I understand that everyone needs to make a living bu frankly I think this answer is poor and I’ve been using wordpress since its launch in 2003 so don’t consider your reply to be in line with industry standards.

If you could argue to me that custom post types do not have a symetrical format and therefore making documentation to explain this would be redundant, I could give you reason. But I know that is not the case.

But based on your reply, it just sounds to me as though you’re trying to sell me an addon that frankly should be part of the instruction manual. This doesn’t even address the amount of time that was spent providing a development server, videos and details to allow you to make these changes without reason.

Is that what you are asking me to do?

If that is the case, please provide clear instructions on where a Developer will find the information they need to comprehend what needs to be done just to make the a really straightfoward footer appear in a custom post type page, or simply provide instructions to make this happen and add it to your documentation so others don’t get frustrated when trying to do this basic thing.

Cheers.

Hi Jason,

Regarding the Footer problem, I have already checked your Child Theme and found that the Template has been overridden which is not showing the Footer and that is what I have explained in my reply. Once you set the Default Template it starts showing the footer, which shows that the problem is in the Template. I have also provided the information on how you can create your own Template using the Cornerstone and assign it to the specific Post Type. If you are not able to create that, please let us know we can create an example that can be used.

Thanks

Here is the code that was also recommended to a user in the forum that was adapted by adding the names of the custom posts types “Organic Landing, connecter”.

I don’t understand why this information would have been given to a user if it basically made the footers stop working. Could you please share the code that would need to be added, I imagine here or in functions.php so that a custom post-type will render with the functionlality to render the Footer (and the header, if that is something that also needs to be declared).

Thank you.

<?php

// =============================================================================
// TEMPLATE NAME: Blank - No Container | Header, Footer
// Template Post Type: post, page, product, Organic Landing, connecter, portfolio-item
// -----------------------------------------------------------------------------
// A blank page for creating unique layouts.
//
// Content is output based on which Stack has been selected in the Customizer.
// To view and/or edit the markup of your Stack's index, first go to "views"
// inside the "framework" subdirectory. Once inside, find your Stack's folder
// and look for a file called "template-blank-4.php," where you'll be able to
// find the appropriate output.
// =============================================================================

x_get_view( x_get_stack(), 'template', 'blank-5' );

Hello @Eudelo,

In this line:
// Template Post Type: post, page, product, Organic Landing, connecter, portfolio-item ,

This would mean that your posts, pages, products, connecter and portfolio-item post types will NOT have any footer. I think you will have to remove the pages or any other post type if you want to display the footer. May we know what you really want and where you only want to remove the footer?

Best Regards.

I don’t want to remove the footer, I want to be able to control it on the connector post type like they can be controlled on the pages and posts already.

There are easier ways to fix this. It works great, and doesn’t require editing the child theme Page Templates (at least anything footer related).

Method 1 is 1 footer, with Sections having conditions set.
Method 2 is 2 footers, with entire Footer element having conditions set.

Method 1 -

  • Select the Section and in customize > Conditions
  • To HIDE: Select Post Type then is not and then My Custom Post Type.
  • To SHOW: Select Post Type then is and then My Custom Post Type.

Method 2 -

  • Select the Section and in customize > Conditions
  • Set where you you want it assigned


image

My Use Case

For example, I have 2 headers
  • My light bg “Landing Pages” assigned Header (hidden first then dark) and Priority 0
  • Rest of site is assigned Header (scroll black) and Priority 10

image

Hey @Jonson,

Thanks again your sharing your alternative option, @Eudelo, please follow the recommendation by @Jonson.

Let us know how it goes.

Cheers!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.