Comma between tags

  • Halil
    Halil
    Newbie 14 points
    March 10, 2015 at 1:59 pm

    Hi everyone,

    My problem is, when I use the shortcode: [TAGS], it doesn’t put commas between the tags. I am sure, there should be a simple solution but I couldn’t find it.

    Many thanks in advance,
    H

  • Alex Morgan
    Alex Morgan
    Super Guru 1,111 points
    March 10, 2015 at 6:03 pm

    hi Halil,

    By Default it doesn’t have comma on it. You can edit the file: framework/class/class_shortcodes.php and search for this function: wlt_shortcode_tags then you can add comma after anchor tag.

  • Halil
    Halil
    Newbie 14 points
    March 10, 2015 at 11:15 pm

    Hi Alex,

    I found the foreach loop of the [tags] shortcode in the class_shortcodes.php file but I couldn’t find out how to add commas. Could you please me let me know how can I do it?
    I don’t know what ‘anchor tag’ mean.

    Many thanks,
    H

  • Alex Morgan
    Alex Morgan
    Super Guru 1,111 points
    March 11, 2015 at 7:50 am

    Hi Halil,

    You should see [code title=””][/code] at the end it has [code title=””] [/code]
    You can add comma after [code title=””][/code]

  • Hemanta Chakladar
    Hemanta Chakladar
    Super Guru 1,710 points
    March 11, 2015 at 9:28 am

    Why do it require core theme file changes ?

  • Halil
    Halil
    Newbie 14 points
    March 11, 2015 at 7:45 pm

    Sorry but I don’t have development skills. I tried find the solution from the categories shortcode but I couldn’t understand the code 🙁

    I would be happy if you could help!

  • Mark Fail
    Mark Fail
    Super Guru 13,013 points
    March 12, 2015 at 6:15 am

    whats your site link, most things like commas are switched for CSS these days.

  • Halil
    Halil
    Newbie 14 points
    March 13, 2015 at 2:04 am

    Hi Mark,

    It is https://partiyegel.com/. I used [CATEGORY] & [TAGS] shortcodes in the listing layouts. There are commas between categories but not between the tags.

    Many thanks,
    H

  • Halil
    Halil
    Newbie 14 points
    March 15, 2015 at 11:08 am

    Hi Mark,

    Do you have any suggestion?

    Many thanks,
    H

  • Gino
    Gino
    Newbie 11 points
    May 26, 2015 at 12:02 pm

    Hi guys,

    I have the same problems with Halil. I think it might be something to done with the class wlt_shortcode_tags, but couldnt find out the solution.

    my link : https://lovtify.com/product/led-bar-furniture-led-coffee-table-led-stool/

  • M
    M
    Senior Member 278 points
    May 26, 2015 at 12:30 pm

    This little line of code will place a ,comma after each tag… unfortunately including the last one, but I think that’s ok?

    Place to: Design Setup -> Custom Meta Data -> Footer Styles
    [code title=””]
    <script>
    jQuery(“.wlt_shortcode_tags a”).after(‘,’);
    </script>
    [/code]

    CodersPress.com – Plugins, Tips and Tricks


  • Josh
    Super Guru 13,875 points
    May 26, 2015 at 1:12 pm

    You could also try this
    [code title=””]
    <script>
    jQuery (“.wlt_shortcode_tags a”).append(‘,’)
    </script>
    [/code]

  • M
    M
    Senior Member 278 points
    May 26, 2015 at 1:43 pm

    Actually Josh we can avoid putting a comma after the last tag like this:

    using: .not(“:last”)
    [code title=””]
    <script>
    jQuery(“.wlt_shortcode_tags a”).not(“:last”).after(‘,’);
    </script>
    [/code]


  • Josh
    Super Guru 13,875 points
    May 26, 2015 at 2:06 pm

    Thanks M 🙂

  • Gino
    Gino
    Newbie 11 points
    May 26, 2015 at 2:18 pm

    Thanks both Guru M and Josh !

Viewing 15 posts - 1 through 15 (of 17 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes