- This topic has 8 replies, 2 voices, and was last updated 5 days, 13 hours ago by Walter.
February 3, 2020 at 2:24 pm #1153398George
I have been recently optimizing and organizing my development process by following SCSS functionality and CSS BEM methodology and there is a project where I need to customize a large number of header elements that have slightly different HTML markup. I was wondering if there is a way to actually import HTML in a header element from an external file. Ideally, all markup would be contained in one HTML or PHP file so that I can develop faster and see all code at once but importing from separate files is also fine.February 4, 2020 at 6:58 am #1154234DavidStaffCustomer SupportFebruary 4, 2020 at 11:05 am #1154501George
Yes, that’s right. Or it could be the import happens on the backend. I just want to be able to code in VS Code without having to keep copy-pasting code to the WordPress admin in the header elements.
Also, as far as I can see only HTML code can be entered in a header element, is that right?February 4, 2020 at 3:49 pm #1154708TomLead DeveloperLead Developer
Hmm, I’m not sure if this is possible. If it helps you to research a bit more, the Element content is just a simple custom field, so if there’s a solution available that can do this with custom fields, it should work with Elements.
I’ll assign this back to David just in case he has any ideas.February 4, 2020 at 3:54 pm #1154713George
Ok, thank you both. It seems more trouble than it’s worth, I will do some research myself though.
Thanks again!February 5, 2020 at 9:14 am #1155661TomLead DeveloperLead DeveloperSeptember 11, 2021 at 9:49 am #1926954Walter
I need the same functionality – any idea or solution found?
Thank you, WalterSeptember 11, 2021 at 8:57 pm #1927301TomLead DeveloperLead DeveloperSeptember 12, 2021 at 5:03 am #1927578Walter
- You must be logged in to reply to this topic.