Support » Plugin: Print-O-Matic » How to set a “title” attribute of the icon

  • Resolved Trebly

    (@trebly)


    Hello,

    I have not found a way to set the “title” attribute of the icon (click event to js).

    For now reading the code I found that by default if a “title”, by default or into the shortcode options, is defined then the plugin displays the title as the content text of a link and we can find same text as the “title” attribute of the icon.

    Looking at the code it seems that to define the “title” attribute of the icon is not an available option ( “title” seems to correspond to two different concepts and data)

    This is not clear for me.

    Best regards

    Trebly

    • This topic was modified 1 year, 7 months ago by Trebly.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor twinpictures

    (@twinpictures)

    Hi,
    Thanks for the quick answer.

    it is a little confusing about “title” because we have three concepts :

    • The title of the document
    • The Title as parameter of pom which set the content of a textual link to launch the print and at same time sets (but not sanitized to be displayed with quotes if they are : as text is is writng as written but as title the quote must be escaped… that’s is little bug) the title attribute or the icon
    • the “alt” option of the shortcode (do_shortcode to set into theme or sub-theme) which is used to define the attribute “title”of the icon if no title is defined (not very useful : even to display the work “print” in special css after the icon for mobiles…)

    But it is solved for me but I need to create a wide comments into the code to explain this to others who would had to write after me.

    Best regards

    Trebly

    • This reply was modified 1 year, 7 months ago by Trebly.
    Plugin Contributor twinpictures

    (@twinpictures)

    Glad you got it resolved!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to set a “title” attribute of the icon’ is closed to new replies.