• Resolved jayford

    (@jayford)


    Hi,

    I tried to put this plugin in my header but it won’t work.

    I used this code <?php echo do_shortcode(‘[woocs width=’50px’] ‘); ?> but it returns an error.

    Thank you so much please help

Viewing 2 replies - 1 through 2 (of 2 total)
  • For a start, you are confusing the parser with quotes.
    Suggest that you try:
    <?php echo do_shortcode("[woocs width='50px']"); ?>

    OR
    <?php echo do_shortcode('[woocs width=\'50px\']'); ?>

    Thread Starter jayford

    (@jayford)

    Ross,

    Thank you so much for your help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Short code not working’ is closed to new replies.