• Creator
    Topic
  • #26371

    Cyrille Sanson-Stern
    Spectator
    Been thanked: 0 times

    Hi,

    Is it possible to add an icon next to the title of a tab?

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
Replies
  • Denzel Chia
    Moderator
    Post count: 2841
    Been thanked: 91 times
    #26384 |

    Hi,

    Add the following before your title.

    <i class='fa fa-twitter'></i>

    This will add twitter icon.

    Refer to the following for list of icons. Some may not work with Evolve+ Theme.
    https://fortawesome.github.io/Font-Awesome/icons/

    Thank you.

    Cyrille Sanson-Stern
    Spectator
    Post count: 27
    Been thanked: 0 times
    #26407 |

    Hi,

    Can you tell exactly where?

    content

    Thanks

    Denzel Chia
    Moderator
    Post count: 2841
    Been thanked: 91 times
    #26415 |

    Hi,

    Please use the following example.

    Thank you

    Cyrille Sanson-Stern
    Spectator
    Post count: 27
    Been thanked: 0 times
    #26425 |

    Hi,

    Could you tell why shortcodes are not the same that the ones you get with Evolve+?

    Compare [tabs to [t4p_tabs

    Thanks

    Denzel Chia
    Moderator
    Post count: 2841
    Been thanked: 91 times
    #26432 |

    Hi,

    I used the tabs shortcode from demo content as an example.
    Both are suppose to work.

    If you prefer the other. You can use the following example.

    Thank you

    Cyrille Sanson-Stern
    Spectator
    Post count: 27
    Been thanked: 0 times
    #26443 |

    Hi,

    We are going on.

    Nevertheless there is an issue after each change/save of the page

    <i class=’fa fa-calendar’></i>
    become
    <i class=”fa fa-calendar”></i>

    and it generate two notices:
    Notice: Undefined index: title in …/wp-content/plugins/t4p-core/shortcodes/class-tabs.php on line 207

    Notice: Undefined index: tab00000001 in …/wp-content/plugins/t4p-core/shortcodes/class-tabs.php on line 174

    Plus how we change icon size?

    Denzel Chia
    Moderator
    Post count: 2841
    Been thanked: 91 times
    #26456 |

    Hi,

    First of all.

    Put the shortcode example in your WordPress text editor, not the WordPress visual editor.

    As for the undefined index, they are notices, not errors.
    Please set your WP_DEBUG to false.

    To change icon size, you can add fa-2x to the icon class.
    <i class='fa fa-twitter fa-2x'></i>
    It probably works up to fa-4x

    Thank you

    Cyrille Sanson-Stern
    Spectator
    Post count: 27
    Been thanked: 0 times
    #26462 |

    Hi,

    Putting the shortcode in the text editor is what I already do. 😉

    Not sure that to put the dust under the carpet (WP_DEBUG to false) is the best way to correct the issue.

    Despite this two notices, page’s display is broken…

    Could you, please, tell why simple cote ‘ are changed by “? And how to solve it?

    Thank you,

    Denzel Chia
    Moderator
    Post count: 2841
    Been thanked: 91 times
    #26471 |

    Hi,

    Please post your WordPress login access in private reply.
    I will login and created a demo page for you.

    Thank you

Viewing 9 replies - 1 through 9 (of 9 total)
You must be logged in to reply to this topic.