Forum Replies Created

Viewing 10 replies - 61 through 70 (of 70 total)
  • +1 on 4.4.2

    Thanks for the amazing work, Chouby!

    I can confirm that this solution works perfectly with the latest versions of all the involved plugins and WordPress.

    Here’s a small wpml-config.xml to put in wp-content/poylang in order to get the shop archive page title and meta description translated in Polylang strings:

    <wpml-config>
        <admin-texts>
            <key name="wpseo_titles">
                <key name="title-ptarchive-product" />
                <key name="metadesc-ptarchive-product" />
            </key>
        </admin-texts>
    </wpml-config>

    These titles and descriptions override whatever I set in the Yoast SEO metabox in the pages for the shop archives.
    Moreover, in the translated version, the original structure prevails and Facebook shows ‘Products Archive’ for title and no meta description at all.

    When trying to debug the link through the Facebook Devs service it shows a 404 for the translated page’s permalink, but does show the input from the strings translation if I change the slug to the main language one, but keep the translated language in the URL. Like so:

    wonderwhite.ru/butik (main language, ru) – works as expected
    wonderwhite.ru/en/boutique shows ‘Products Archive’ and no meta when sharing on FB, and throws a 404 in FB Devs
    wonderwhite.ru/en/butik shows original version when sharing on FB, and shows translated version in FB Devs

    Could be a Polylang or Yoast SEO thing.

    I would appreciate it if you had any hints on a possible solution for this strange behaviour.

    Cheers!

    Thread Starter somePaulo

    (@finomeno)

    Hi Yithemes,

    Thanks for the suggestion.
    The code removed the default post prefix from the slug.
    However, I was actually willing to replace it with the default shop prefix automatically. Or have the option in the Pretty Permalinks page to set a slug base for brands.
    I was able to modify things now to suit my configuration, but that is a manual hack. Will the next version of your plugin have a ‘base slug’ setting for the pretty permalinks page?

    Thank you

    somePaulo

    (@finomeno)

    If anyone stumbles across this and finds this useful, here’s a css snippet to use FontAwesome icons instead of image ones. Just choose none in the Header Icons option and this snippet to your theme’s custom CSS (This example assumes you already have FontAwesome enqueued):

    .hm-swe-collapsed:after {
      font-family: FontAwesome;
      font-size: 16px;
      float: right;
      content: "?";}
    .hm-swe-expanded:after {
      font-family: FontAwesome;
      font-size: 16px;
      float: right;
      content: "?";}

    If you want to use ASCII instead of unicode characters, you can find the respective codes on the FontAwesome icon page for your chosen icon and use it with a backslash like so (as above, but in ASCII):

    .hm-swe-collapsed:after {
      font-family: FontAwesome;
      font-size: 16px;
      float: right;
      content: "\f196";}
    .hm-swe-expanded:after {
      font-family: FontAwesome;
      font-size: 16px;
      float: right;
      content: "\f147";}

    Enjoy!

    Any news on this?
    There was a companion plugin to keep your translations over updates. That one seems gone too.

    Thank you @intricateware !

    It worked, only in my case I had to also change

    if ( isset( $_data['likes'] ) ) {
        $count = intval( $_data['likes'] );

    to

    if ( isset( $_data['country_page_likes'] ) ) {
        $count = intval( $_data['country_page_likes'] );

    Thank you Wombat,

    Your solution solved this for me (:

    Found another thread on the same problem, added the ‘display’ bit to get_bloginfo in my theme’s custom functions, and the title is working now. Cool! Problem solved!
    Thank you for this great plugin!

    Alessandro,

    Thanks for the tip!
    I didn’t get any notification of your reply, so only tried it now, but to no avail.
    Changing the elegant_titles() code to either the_title() or wp_title() just removes the title from the titlebar completely.

    Another thing that seems not to wotk with this theme is translations of theme bits like Search and the Contact form.

    Would greatly appreciate any hints in the right direction.
    Cheers!

    PS
    The site is no longer in maintenance mode – parental-child-abduction.org

    Ciao Alessandro!

    Thank you for such a functional plugin.
    I am currently developing a site, and its title does not get translated.
    I’m using Trim theme from Elegant Themes.
    Can you have a look at parental-child-abduction.org please?
    The code that invokes the title in head.php is
    <title><?php elegant_titles(); ?></title>
    When I replace it with the relevant code from TwentyThirteen theme, the title does not display at all.
    If I enable the TwentyThirteen theme, the title does get translated on the page, but not in the title bar.
    Any helping hint greatly appreciated.

Viewing 10 replies - 61 through 70 (of 70 total)