• Resolved vividesigns

    (@vividesigns)


    Trying to change wording of ‘Recent Posts’ to ‘New products’ with this CSS snippet in Customizing – Additional CSS – but it doesn’t work. Any ideas? NB the first 3 lines work on their own – so it must be the last 4 lines?

    .page-title, .recent-posts-title {
    font-size: 0;
    }
    .page-title, .recent-posts-title:after {
    content: “New Products”;
    font-size: 32px;
    }

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi there,

    Try this:

    .recent-posts-title {
      font-size: 0px;
    }
    .recent-posts-title:after {
      content: "New Products";
      font-size: 32px;
    }

    The problem is the quotes – your code appears to contain so-called “smart-quotes”, rather than regular straight quotes.

    But you also don’t need the .page-title selector, though – including that will replace the titles of all your pages in addition to the heading for the recent posts section on the front page.

    Thread Starter vividesigns

    (@vividesigns)

    Thanks so much – that works! I was just about to go down the functions php route – but this is so much less complicated…

    Happy I could help ??

    For some reason, the segment:

    .recent-posts-title {
      font-size: 0px;
    }
    

    Doesn’t seem to do anything on my site.

    When I try to apply the solution above, it just says “Recent PostsNew Products”

    @prettygoodwolf, are you using Ixion? CSS is theme-specific, and code that works for one theme won’t necessarily affect another. If you already have any other additional CSS added to your site, that might also affect things.

    Please open your own support thread, and include a link to your site and details on exactly what you’d like to change, and we can take a look for you.

    Hello @kokkieh,

    I’m also looking to change “Recent Posts” and “More Posts” but on a multilingual website and I cannot find the solution. English being the second language of the website. I changed the text in French in the French translation key chain of WPML.

    Is there a way to change this in PHP file?

    Thank you very much!

    • This reply was modified 5 years, 6 months ago by wpaiksas.

    Hello,

    I found the file to modify:
    /components/features/recent-posts/recent-posts.php

    Hope this will help others!

    @wpaiksas,

    In general it’s best to not post into old threads created by other people and that have already been set to resolved.

    I do not recommend modifying the recent-posts.php file directly. To start with, if you edit any theme file directly, those edits will be lost the next time the theme updates. But it also runs the risk of completely breaking your site if you’re not careful. If you want to make changes to a theme file, the recommended method is to do so using a child theme:

    https://developer.www.ads-software.com/themes/advanced-topics/child-themes/

    But the better option here is to translate the theme.

    All strings included in this theme is translatable, including the Recent Posts string. Looking at the translation project for this theme at https://translate.www.ads-software.com/projects/wp-themes/ixion/fr/default/ the Recent Posts string has already been translated to French, but it looks like it’s waiting for a validator for French to approve those changes before it will be available to use.

    You can try reaching out to a translation editor for French to ask if they can review and approve those translations. You can find the translation team for French at https://make.www.ads-software.com/polyglots/teams/?locale=fr_FR – just keep in mind that like everyone here they’re volunteers who do this in their free time.

    Once a translated version of the theme is available, your multi-lingual plugin should be able to take care of displaying the correct language version of the theme as needed.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Trying to change wording of ‘Recent Posts’’ is closed to new replies.