Support » Plugin: Gantry 5 Framework » Post titles on home page problem

  • 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 4 years, 4 months ago by rafalgal.
    • This topic was modified 4 years, 4 months ago by rafalgal.
    • This topic was modified 4 years, 4 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: http://modnestylowe.pl/

    Thread Starter rafalgal

    (@rafalgal)

    Unfortunately it didn’t help πŸ™
    Website in question is: http://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.