• Hi.
    I wrote 2 posts before this that have not been answered . So, I tried and tried , and found the solutions. These solutions , however, will only work if I can solve this problem: how do I add the selectors “id ” to the shortcode ?
    ex :
    this shortcode
    [ su_note note_color = "# c7083b " radius = " 5 " ] Notes text [ / su_note ]
    produces the html code :
    <div class = " note- on - inner" style="background-color:#c7083b;border-color:#f4ced8;color:#333333;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;">Note text < / div>

    Is there a way to insert the selector “id ” in the shortcode like
    [ su_note note_id = " test " note_color = "# c7083b " radius = " 5 " ] Notes text [ / su_note ]
    to have this html code :
    <div id = " test " class = " note- on - inner" style="background-color:#c7083b;border-color:#f4ced8;color:#333333;border-radius:5px;-moz-border-radius:5px;-webkit-border-radius:5px;">Note text < / div>

    This feature will greatly increase the functionality of the shortcode that would be accessible from JavaScript and CSS3 target selector.

    https://www.ads-software.com/plugins/shortcodes-ultimate/

  • The topic ‘Adding "id" selector to su_ shortcode divs’ is closed to new replies.