D
D
Dubrovin2018-06-21 02:05:02
WordPress
Dubrovin, 2018-06-21 02:05:02

How to render CSS for shortcodes dynamically?

There is a shortcode with custom parameters (for example, a button that has a size in px, colors, and so on).
for example

[button size="110px" color="#FF00FF" something_else="123em"]

The goal is not to write dynamic CSS inline for such a shortcode.
Is it possible to somehow parse all shortcodes from the content at the header output stage, generate CSS for them and display them before the closing head tag?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question