Cornerstone inserts unwanted white space between the menu and the first section of the page

Hi,

when I create a new blank page of a custom post type and start editing with Cornerstone, between the menu and the first section there is a white space that I can’t remove (I don’t know which setting inserts it).
See here: https://wbmstudio.com/cornerstone/content/1668

I noticed that this doesn’t happen if I create a new page from the default WordPress post page type.

Why does this happen?

Another question:

Can dynamic content and acf pro be used with global content? When I try to insert a text fetched with dynamic content it is not displayed.
For proof, I created this global content on the site to make it clear what I mean:
[cs_gb name = “prova”]
Could you take a look if I’m wrong something?

I dati di accesso al sito sono nella nota privata.

Hello Daniele,

Thanks for writing in!

1.) The space between the header and the custom post-type content is coming from the default theme styling;

.entry-content {
    margin-top: 1.25em;
}

You can go to Cornerstone > Theme Options > CSS and add the code above slightly modified by setting the margin to 0 and adding .single-royalty_free_music class selector in the code to make sure that every time you edit the Royalty Free Music custom post-type, the space will not display.

2.) Can dynamic content and acf pro be used with global content?

  • Yes, you can use the dynamic content and ACF Pro with global blocks. You might no data will display while editing the block. You can. test it out when the global block is added to the page/post or your layout.

Best Regards.

Hello @ruenel , now it works.

But I didn’t understand where I need to add .single-royalty_free_music class selector. Where is the code you refer to in your answer?

I have to understand because later I will have to create another custom post type similar to this one and I would like to avoid asking for support again.

Also, I am now using the “Custom Post Type Page Template” plugin which allows me to select the desired post template. If I want to avoid using the plugin, can it be done directly from Cornerstone or do you need a custom theme change?

Hello Daniele,

1.) This is the code I am talking about:

You will have to add the modified code in Cornerstone > Theme Options > CSS.

2.) You will be needing the plugin because custom post type will just have to use the default post templates.

Best Regards.

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