How to load the styles to home page

Front Support Plugins Support WP Customer Testimonials How to load the styles to home page

This topic contains 3 replies, has 2 voices, and was last updated by  Laura Rodriguez 4 years, 10 months ago.

  • Author
    Posts
  • #821

    Laura Rodriguez
    Participant

    Hi Hesham,
    The plugin is not loading the form styles and the other styles to my home page head and all the necessary for the form to function. I need to display the form and the testimonies in the home page.

    Could you point me to the solution?

    Thanks

  • #828

    Laura Rodriguez
    Participant

    Hi Hesham,
    I still can´t get the form to function on the home page because the archives related to the form (css, functions, etc.) do not load to the home page header.

    I also want to load the bubble style to the home page, actually I made a hack to show it there but I´m sure it is not a good trick because I substituted the word tooltip for bubble in some code in the wp-customer-testimonials.php:

    /**
    * load our css
    * to the head
    */
    function wpct_addMyScript() {
    if (is_front_page() || is_home()) { // load only on front page or home page
    wp_enqueue_style (‘wpct-style’, plugins_url( ‘/css/style.css’, __FILE__ ), false, ‘1.0’, ‘all’ );
    wp_enqueue_style (‘wpct_bubble_style’, plugins_url( ‘/css/testimonial_bubble.css’, __FILE__ ), false, ‘1.0’, ‘all’ );
    }

  • #829

    Hesham
    Keymaster

    Laura, I’ve sent you a fix for the submit form by email.

    For the Bubble style and script, this could work in another way.

    You can edit your theme files, and display the testimonial bubbles by using the shortcode, for example you can use this to display it in your theme where you want it to show:

    < ?php echo do_shortcode('[testimonials_bubble]'); ?>

    P.S. Be careful not to break your site.

  • #834

    Laura Rodriguez
    Participant

    Hesham,

    I´m using the above mentioned do_shortcode in my home page (home.php) and this is not loading the bubble styles.

    I appreciate you take a look
    Thanks

The forum ‘WP Customer Testimonials’ is closed to new topics and replies.