Jump to content


Photo

not sure where to put code


  • Please log in to reply
3 replies to this topic

#1 donnanova

donnanova

    Member

  • Members
  • PipPip
  • 22 posts

Posted 03 July 2012 - 09:52 AM

I have a content box under my nav-bar where I want to put a slider. When i put the short code in the content box it just displays the short code for the world to see. In the instructions it states:
"Inserting a Slider into a theme Template file

Use to display a slider anywhere in your template files."


I have no idea where to put the above coding :( I would appreciate assistance.

my site Link

#2 Danny

Danny

    Is Awesome!

  • Moderators
  • 17966 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 03 July 2012 - 11:25 AM

Hi,

You would need to add this to your ContentBox:

 [sugar_slider id=#]

and not

 <?php echo do_shortcode("[sugar_slider id=#]"); ?>

If that is what you were doing.

#3 donnanova

donnanova

    Member

  • Members
  • PipPip
  • 22 posts

Posted 03 July 2012 - 06:12 PM

Hi Danny,
No, I have been using the short code
 [sugar_slider id=#]
and all it does is display the short code on my homepage. I have used many different sliders and they simply are not working. One slider showed the slider box and slider controls, but without the pictures I added to the slider.

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 03 July 2012 - 07:51 PM

The instructions you cite are for a template, not for addition to the body of a post or page. You'd have to ask the plugin author, which isn't us, unfortunately.