Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #738080

    I have a widget code that I need to add to every WooCommerce product page:

    <div id=”olapic_specific_widget”></div><script type=”text/javascript” src=”https://photorankstatics-a.akamaihd.net/81b03e40475846d5883661ff57b34ece/static/frontend/latest/build.min.js&#8221; data-olapic=”olapic_specific_widget” data-instance=”9d89ac4dfb6d9b05454c9f7c230a8dd9″ data-apikey=”3f9a75ba43acaa23934ae623ee6631b7165191d90571fb8f5384d30b6cff0692″ data-tags=”” async=”async”></script>

    I just need to figure out where to put this code (so that the widget will appear on all the product pages). Also I need to figure what product variable (or shortcode?) to specify for “data-tags” so that the code can loop the product accordingly. Does that make sense? Please help! Thank you!!!

    #738282

    Hey glossmoderne,

    Unfortunately it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However if its really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Basilis

    #738512

    Is there a way to do the first part of my question? To just add the widget code to the product pages?

    #738518

    Hi!

    Please try adding following code to Functions.php file in Apperance > Editor

    function av_woocommerce_code(){
    if(is_woocommerce()){
    ?>
    // Your code goes here
    woocommerce_code');

    Code will be added to footer of your WooCommerce pages. I am not sure if i understood the second part of your question. However, as Basilis mentioned, it would be the best if you considered to hire a freelance developer :)

    Cheers!
    Yigit

    #738531

    I was able to add the code to the product description box and it seems to be working.

    Is there a way to remove the border around it?

    #738532

    Hey!

    Please add following code to Quick CSS in Enfold theme options under General Styling tab

    #top div div.product .woocommerce-tabs .panel {
        border: none;
    }

    Regards,
    Yigit

    #738565

    Also would you know how to change the font size for “Auto-Ship price”?

    I would like to also capitalize the P in price but not sure where to do that.

    This is the WooCommerce Auto-Ship plug-in.

    Thank you for your help!

    #738569

    Nevermind I figured it out. Thank you!!!

    #738588

    Hey!

    Please add following code to Quick CSS as well

    h3.wc-autoship-price, h3.wc-autoship-price span {
        font-size: 18px!important;
    }

    Cheers!
    Yigit

    #912847

    Hi,

    When I try using Yigit’s code (post #738518) I have this error message (translated from french) : “Your PHP modifications have been canceled because there is an error on [last line of Yigit’s code]” : syntax error, unexpected end of file

    Can you please tell me what I should do to make it work ? Thank you !

    #912971

    Hi,

    You need to provide us the code you are using exactly on a service like pastebin.com
    so we can be able to help you out with that.

    Best regards,
    Basilis

Viewing 11 posts - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.