Home Forums WoodMart support forum Trustpilot trustbox and woodmart

Trustpilot trustbox and woodmart

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #557135

    boosterbast
    Participant

    I have been trying to get the trustbox to work reliably. Using the functionality from the trustpilot plugin itself somehow only works on mobile and not on desktop.

    Therefore I am trying to add it manually.
    Following their instruction. I have to add this to the head section of my websites HTML.
    <!– TrustBox script –>
    <script type=”text/javascript” src=”//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js” async></script>

    I have no clue how to do this for my woodmart child. Any advice? Thanks!
    <!– End TrustBox script –>

    #557456

    boosterbast
    Participant

    Any advice?

    #557593

    Hung Pham
    Keymaster

    Hi boosterbast,

    Thanks for reaching to us.

    To assist you in the best possible manner, I kindly ask that you please provide me temporary wp-admin info (wp-admin URL, username, password) to the Private Content area, this will allow me to thoroughly investigate and address your concerns more efficiently.

    Regards,

    #557642

    boosterbast
    Participant

    Hi Hung,

    Where do I place code into the head section of the HTML with the woodmart theme?

    #558003

    Hung Pham
    Keymaster

    Hi boosterbast,

    You can try to copy function to functions.php to child theme and make changes to see if it works

    function add_custom_script_to_wp_head() {
    	echo "<script type='text/javascript' src='//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js' />";
    }
    add_action( 'wp_head', 'add_custom_script_to_wp_head' );

    Regards,

Viewing 5 posts - 1 through 5 (of 5 total)