Home User profile
tagDiv Member
This user did not write anything. So we are just showing here some random text to make the profile page look nice :)
tharawat
tagDiv Member

Hi Calin,

thanks for your quick reply. Nevermind my previous question. I found the plugin inside /includes/plugins/td-speed-booster.zip in the Newspaper directory.

I have now added all the css/js files that I would like to move to the footer using the following code:

$this->move_style_to_footer_queue(‘td-theme-demo-style’);

After saving and reloading the page, I noticed that any of the files have been added to the footer, they still keep loading in the head of the page. What’s happening here? Can you help me do some troubleshooting?

Thanks!

tharawat
tagDiv Member

Hi, maybe I didn’t explain myself well in the previous posts. What I need to do is switching the template files for my CPT the same way I do it with the normal posts. Is there a way to do that? If not, can you please point me to the file inside the theme structure where you assign the different templates using the layout settings panel? Thank you

tharawat
tagDiv Member

Hi, I followed your instruction and modified the code in order to show the layout settings on CPT (look at the code here https://pastebin.com/PGZKJz6z)

Using this snippet I’m able to display the layout settings panel on the Edit page but it doesn’t work. In other words, the template doesn’t get assigned to the post. Any help?

tharawat
tagDiv Member

Hi,

The “Entities” custom post type is added by a plugin, but we are the plugin provider. Can you please tell me a solution to add a snippet of code to the child theme in order to display those settings for the custom post type?

tharawat
tagDiv Member

Exactly!

tharawat
tagDiv Member

Hi,

Sorry if I didn’t make myself clear. The problem is I have this CPT called “Entities” and, when I access the Edit Post page to edit one of them, I only see the Sidebar Settings, whereas for normal Articles I see both Page Template Settings and Sidebar Settings. I would like to know if there’s a way to show the Page Template Settings also for CPT. Attached you can find two screenshots so you can see the difference. The first one is the Posts and the second one is the CPT

Posts

CPT

Viewing 6 posts - 1 through 6 (of 6 total)