• Resolved Guido

    (@guido07111975)


    Hi,

    It’s not possible to add HTML markup in the ‘services’ section because all HTML is stripped because of the the_excerpt() feature you’re using in file ‘section-services.php’.

    Could you please add the_content() instead?

    Users can cut off text if necessary, by using the ‘more’ button in the text editor.

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)
  • Theme Author FameThemes

    (@famethemes)

    Hi @guido07111975,

    I assume you have a single page with long content and you want to show this page in the Service section. So if you use the_content(), it will show too much content there and it looks bad, right?

    So that is why we use the_excerpt() instead.

    • This reply was modified 8 years, 6 months ago by FameThemes.
    Thread Starter Guido

    (@guido07111975)

    Hi,

    I understand, but that’s why users can add the ‘more’ button while adding text, to cut off text if it gets too long.

    Now all HTML is stripped, including UL (lists) and line breaks.

    Guido

    Theme Author FameThemes

    (@famethemes)

    Hi @guido07111975,

    Someone know that, but not at all. And if they don’t know and we use the_content, the service content is so long and looks not good. So the_excerpt is our best choice.

    Thread Starter Guido

    (@guido07111975)

    Or let the user choose between excerpt or whole content, via a new setting on the services section in dashboard.

    Guido

    Thread Starter Guido

    (@guido07111975)

    Update:

    In another thread you recommend to set a custom page excerpt… this works, because the custom page excerpt does NOT strip all HTML markup.

    Resolved!

    Guido

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Why use excerpt in services section?’ is closed to new replies.