Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Viktor Lecter

    (@victorvizcaino)

    Found a solution I use:

    <?php echo do_shortcode(“[YOUR_SHORT_CODE_HERE]”);?>

    Remember, use ” instead of only ‘, and thats all ??

    Thread Starter Viktor Lecter

    (@victorvizcaino)

    Yeees!!!, I create a lateral share bar, I use this code:

    <div style=”display:scroll;position:fixed;width:50px;top:100px;left:0px;”><?php echo do_shortcode(“[YOUR_SHORT_CODE_HERE]”);?></div>

    I tried in css with child theme in style.css but dont work, but with html it work very good ?? ??

    Hugs for all!!

    Pd: Put that “lateral share bar” only in single.php after <?php get_footer(); ?> or before/after </section> because it dont work in home, only in post.

    See it in my blog: https://www.laplegariadeunpagano.com/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Only use shorcode on widget, not in single.php’ is closed to new replies.