+ Reply to Thread
Results 1 to 9 of 9

Thread: How do I add h2 (or nay tag) tags to a listing field ?

  1. #1
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028

    How do I add h2 (or nay tag) tags to a listing field ?

    How do I add h2 (or nay tag) tags to a listing field ? lets say the description box ( or any listing box ) I make please / where do I find these boxes and where to add the tags please.

    ps for the content of the listing box, not the title please
    Last edited by Pete Young; March 14, 2017 at 04:16 AM.

  2. #2
    Hello Pete,

    If i understood you correctly that you need to change following files:
    1. \templates\your_template}\tpl\blocks\listing.tpl
    2. \templates\your_template}\tpl\blocks\featured_item .tpl

    Attached Images Attached Images
    Thank you, Curtis.
    @Flynax Company

  3. #3
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Hello Curtis, can I change the item value to a h2 for an individual listing field rather than all of them ? for example I have a listing field titled "listing details" could I have the content of that listing field be wrapped in a h2 tag ?

  4. #4
    Hello Pete,

    Yes of course, add condition by key of field, for example:

    {if $item.Key == 'listing_details'}<h2>{/if}{$item.value}{if $item.Key == 'listing_details'}</h2>{/if}
    Thank you, Curtis.
    @Flynax Company

  5. #5
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Curtis, where would I place that code in the general css file ?

  6. #6
    Quote Originally Posted by Pete Young View Post
    Curtis, where would I place that code in the general css file ?
    Hi Pete,

    These changes for *.tpl files only.
    You can find code in file "{$item.value}" and replace it to code above.
    In this only field with key "listing_details" will have <h2> tag.

    Attached Images Attached Images
    Thank you, Curtis.
    @Flynax Company

  7. #7
    Guru
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    2,028
    Thank you Curtis will test this tonight and report back.

  8. #8
    Member
    Join Date
    Jan 2019
    Location
    uk
    Posts
    47
    hi where do i find this file in version 4.7.2 ?

  9. #9
    I think Curtis mean: ftp://templates>>your_template>>tpl>>blocks>>listing.tpl file.
    Viktor,
    Flynax technical department,
    Best wishes.

+ Reply to Thread