• Hello ??

    I am using Gantry5 with Hydrogen theme and I have small problem with how post titles are displayed on home page…
    Instead of ‘-‘
    I always get ‘&#8211 ;

    For example if post title is: “This is – title”
    i get “This is &#8211 ; title”.

    How can I fix it?

    Thanks in advance ??

    • This topic was modified 7 years, 8 months ago by rafalgal.
    • This topic was modified 7 years, 8 months ago by rafalgal.
    • This topic was modified 7 years, 8 months ago by rafalgal.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Gantry

    (@gantry)

    Hi,

    Can you please edit the g5_hydrogen/views/partials/content.html.twig and change this :

    
    {% if gantry.config.get('content.' ~ scope ~ '.title.link', '0') %}
        <a href="{{ post.link }}" title="{{ post.title }}">{{ post.title }}</a>
    {% else %}
        {{ post.title }}
    {% endif %}
    

    to :

    
    {% if gantry.config.get('content.' ~ scope ~ '.title.link', '0') %}
        <a href="{{ post.link }}" title="{{ post.title }}">{{ post.title|raw }}</a>
    {% else %}
        {{ post.title|raw }}
    {% endif %}
    

    Did this resolved your issue?

    Thanks,
    Jakub

    Thread Starter rafalgal

    (@rafalgal)

    Unfortunately it didn’t help ??
    Website in question is: https://modnestylowe.pl/

    Thread Starter rafalgal

    (@rafalgal)

    Unfortunately it didn’t help ??
    Website in question is: https://modnestylowe.pl/

    Plugin Author Gantry

    (@gantry)

    Hmmm works fine for me on my local :

    You’d have to ping me on Gitter and give FTP access to check it.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post titles on home page problem’ is closed to new replies.