• Hi,

    I had no CSS loading on single listings. I saw that stylesheet path had a double // instead of /, so it doesn’t load !

    I found the piece of code to edit in plugin.php, line 109. Just removed the / before includes/css/wp-listings-single.css[…] and it works.

    However, I don’t know if it’s a plugin issue or if it comes from my theme ? Any idea ?

    BEFORE

    /** Register single styles but don't enqueue them **/
    		wp_register_style('wp-listings-single', WP_LISTINGS_URL . '/includes/css/wp-listings-single.css', '', null, 'all');

    AFTER

    /** Register single styles but don't enqueue them **/
    		wp_register_style('wp-listings-single', WP_LISTINGS_URL . 'includes/css/wp-listings-single.css', '', null, 'all');

    https://ww.wp.xz.cn/plugins/wp-listings/

Viewing 4 replies - 1 through 4 (of 4 total)
  • This may also be a hosting specific issue as different hosts treat directory structures differently. Sounds like yours doesn’t like the leading slash for that item. We will look further into the issue.

    Thread Starter codespinner

    (@codespinner)

    Hi,
    Thanks. Would you please notice the fix in next release readme.txt ? 😉
    Any idea about translation issue, no way to have texts translated, do you think it could be linked with that hosting specific directory structure handling ?

    I don’t think this has anything to do with the translation of the plugin. The text domain is declared in the plugin but the text of the posts themselves would need to be translated and not just the plugin.

    Thread Starter codespinner

    (@codespinner)

    Hi,

    I only speak about translating common plugin expressions which can be found in the pot file (i.e. Property type, location…)
    I translated wp-listings.pot from wp-content/plugins/wp-listings/languages with Poedit. I uploaded the 2 new files (wp-listings-fr_FR.po & .mo) to the same directory I found the original .pot file.

    My wp-config.php defines French language. Also, WordPress is set to French. However, nothing is translated, backend & Frontend.

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

The topic ‘Single listings CSS path issue’ is closed to new replies.