Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5816

    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.

    #51842

    Hey,

    you can add the options in shoutboxincludesadminregister-admin-dynamic-options.php – search for following code and start hacking :)

    "dynamic"=> 'hr',
    "name" => "Horizontal Ruler",

    #51843

    You da Man :O)

    Thanks!

    #51844

    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.

    #51845

    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.php

    Thanks

    #51846

    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.php

    too.

    #51847

    Thanks!

    #51848

    Glad Dude could help you :)

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

The topic ‘Need to create a new option in the Template Builder’ is closed to new replies.