Wish List: Customize Blog Posts Template

Hi,

I just wanted to add something that would be nice to add to the wish list for a future Pro theme version.

It would be nice to have an editor like you have for the header/footer where you could build blog post templates. Then you could apply that design to all blog posts or choose which blog posts to apply it to.

Thanks,

Jordan

Hi Jordan,

This seems to be doable with the current version of Pro if you use the Pro Builder.

You can enable Cornerstone in Posts types then you should be able to create post pages through Cornerstone. You can then save the post template in the library which you can simply import when you create a new post.

Hope this helps!

Hi Jade,

Oh, I didn’t realize that. I think I understand what you are saying.

I have a couple questions about it.

  1. I would build it using Global Blocks, so I can edit all the post pages by editing just global blocks?
  2. To be able to fully edit the post page like it was a normal page, I have a couple things I would need to address:

a) How do I get rid of the containers in post pages?
b) Is there a shortcode or something I can use for comments? So I can place it where I want?
c)How do I get rid of the post title?

Hi Jordan,

:thinking: No, if you do that all your posts will have the same content. Global Blocks is useful if you want to have a dynamic Section on multiple pages/posts, for example, a contact form on the bottom of the page or a sign-up form on the top of the page.

Add this to your Theme Options > CSS

.single-post .entry-wrap {box-shadow: none;}
.single-post .x-container.max.width.offset {
	max-width: 100%;
	width: 100%
}

Not for now, but maybe in the future. Single posts have the comment section automatically unless you hide or disable it.

Add this to your custom CSS

.single-post .entry-header {
	display: none;
}

If that does not work, please provide us the site URL.

Cheers!

Hi,

I have a few more questions.

  1. I was thinking of building a template that has global blocks in it. So I could change elements within the post that would change in all post pages.

Would that work? Example… if I created a template which had global blocks in it… Like this: https://www.screencast.com/t/ItwV9fObe

Then I would have to put the article content into the spot in the template where the content goes to.

  1. Any method I choose using Cornerstone, will require me to go back and manually move the content from the standard Wordpress into Cornerstone.
    a. Is that correct?
    b. Will that effect SEO rankings?

  2. I added the CSS for the containers. It removed part of the container, but if you look at the blue part on this page: http://faithisland.staging.wpengine.com/uncategorized/test/ you can see that it doesn’t quite reach the edges. It looks like that section is still in some kind of container.

Thanks,

Jordan

Hey Jordan,

  1. Yes, putting a Global Block inside a template would work.

  2. I’m sorry but I’m not sure what you mean but Google only sees the HTML/content that is outputted in the front-end. It does not matter what editor or builder you use.

  3. Try adding this CSS

.single-post .entry-wrap {
    padding-left: 0;
    padding-right: 0;
}

Hope that helps.

Thanks, that fixed it!

I have another question.

  1. How can I pull data from the article into places in a post?

For example: display the date, who posted it, category, title, featured image, and breadcrumbs.

I would like to be able to place those where ever I want by inserting code. Is there a way to do this?

Hi there,

You’ll have to create the shortcode versions of them, or install a 3rd party plugin. You may try this https://github.com/billerickson/display-posts-shortcode/blob/master/README.md#parameters. But not exactly as the one you wish to implement, hence, custom development should do it.

Thanks!

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