How can I add a new selection to the Horizontal Ruler options in the Template Builder? I need a "whitespace with less padding" option. In the same way that the Default Ruler has both options. Thanks.
Need to create a new option in the Template Builder
8 posts from 3 voices-
Posted 1 year ago #
-
Hey,
you can add the options in shoutbox\includes\admin\register-admin-dynamic-options.php - search for following code and start hacking :)
"dynamic"=> 'hr', "name" => "Horizontal Ruler",Posted 1 year ago # -
You da Man :O)
Thanks!
Posted 1 year ago # -
Ooops, not quite there yet! I don't think it's as easy as it looks.
The code you posted is only for creating the new name (which doesn't appear to work yet anyway). I need to know how to create the function. It must be set in different files controlling the templates, but I don't know which ones they are.
Posted 1 year ago # -
Ok, I think I have it now! it seems to work, but can you just check if I changed all the right files please? Perhaps I missed one somewhere.
/ shortcodes.css
INCLUDES / ADMIN / register-admin-dynamic-options.php
INCLUDES / ADMIN / register-shortcodes.php
INCLUDES / helper-templates.phpThanks
Posted 1 year ago # -
Oh - yes. If you'd like to add a complete new element (beside the "standard hr" element) you need to add your code to:
INCLUDES / ADMIN / register-shortcodes.php
INCLUDES / helper-templates.phptoo.
Posted 1 year ago # -
Thanks!
Posted 1 year ago # -
Glad Dude could help you :)
Posted 1 year ago #
Reply
You must log in to post.














