• Resolved Konstantin T

    (@konstantintal)


    Hello!
    I unfortunately do not know English, so to write this report I am using Google translator, advance I am sorry.
    I like your plugin! But I have a problem!
    When I create a new entry in WordPress I disappear styles for your plugin, I can not understand what the problem is. I bring them on the home page in this

    <?php echo do_shortcode('[strong count="3" category="5" random thumbnail]
      [client]
        [field name="client_name" class="name"]
      [/client]
     [/strong]
    [strong read_more page="all-testimonials" class="strong-more"]Читать все отзывы[/strong]') ?>

    But if you make the date of publication of this post old (05.16.2014) everything works. And if you make the publication date (16.05.2015) the missing styles.

    https://www.ads-software.com/plugins/strong-testimonials/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Chris Dillon

    (@cdillon27)

    That’s an odd problem.

    Is the site live? Can you provide a link?

    You added that code to the home page template, yes?

    Does the problem also happen in a default theme like TwentyFifteen?

    Thread Starter Konstantin T

    (@konstantintal)

    Here is the post of the old date of publication 16.05.2014
    All works well if you put a date yesterday 15.05.2015
    https://imgur.com/TSABEme
    And this is if the post with the new date of publication 05.16.2015
    https://imgur.com/cJxAGlb

    I also really looking forward to if you make a star rating.
    Thanks.

    Thread Starter Konstantin T

    (@konstantintal)

    Site still under development.
    Yes, I put it in index.php
    there is no problem in the standard theme.
    I make this theme myself.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Very odd. That is definitely caused by missing CSS. As you can see in the correct one, the “.testimonial .photo” classes are applied. In the incorrect one, those classes are missing.

    I don’t know how to help. There is something wrong in your theme. If you send the entire theme in a zip file to chris at wpmission dot com, I will try to find the problem.

    Thread Starter Konstantin T

    (@konstantintal)

    I hurried and made a mistake in the default theme does not work
    https://imgur.com/pq5THoA

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks for checking that. Does the problem occur when just adding the shortcode to a page using the editor?

    Thread Starter Konstantin T

    (@konstantintal)

    You’re welcome!
    Sorry but I could not understand you what you mean?

    to a page using the editor

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thread Starter Konstantin T

    (@konstantintal)

    Yes so it works. I understand that, if used directly in the code does not work!
    I tried to insert into page.php styles do not work either.

    and on the page where I put through the usual editor works, and those and those styles reviews

    Thread Starter Konstantin T

    (@konstantintal)

    and a link READ MORE leads to a last published post

    Plugin Contributor Chris Dillon

    (@cdillon27)

    I cannot replicate the problem. I tried do_shortcode() in a theme and it worked for me.

    To help any more, I need your theme and a list of installed plugins.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    We sorted this out.

    For anyone building a custom theme, the plugin uses conditional loading, only loading its stylesheets on pages that contain the [strong] shortcode. Since he added the shortcode directly to a theme template, the plugin did not find the shortcode and thus did not load the stylesheet.

    Adding the stylesheet(s) via the theme’s functions.php solved it.

    /**
     * Strong Testimonials stylesheets
     */
    wp_enqueue_style( 'wpmtst-style', WPMTST_URL . 'css/wpmtst.css' );
    wp_enqueue_style( 'wpmtst-form-style', WPMTST_URL . 'css/wpmtst-form.css' );
    wp_enqueue_style( 'wpmtst-widget-style', WPMTST_URL . 'css/wpmtst-widget.css' );

    I will work on incorporating a better solution into the plugin, probably something like “Bypass conditional loading.” This will also help improve compatibility with drag-n-drop page-builder plugins and themes.

    I will also work on more instructions for adding Strong Testimonials to a custom theme.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘When you create a new post WordPress missing styles plugin.’ is closed to new replies.