Using the slider as my page’s featured image
Updated on November 13, 2015 in Sangar Slider
6 on November 10, 2015

Hello,
I would like to use a slider as my page featured image. Do I need to put some code into my header.php file?

Thanks

  • Liked by
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Moderator 0 on November 11, 2015

Hi,

Yes, please use this code in the template file :

Thank you

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
Moderator 0 on November 11, 2015

Hi,

Yes, please use this code in the template file :

<?php do_shortcode(‘[YOUR SLIDER SHORTCODE HERE]’); ?>

Thank you

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
0 on November 11, 2015

Hi Zea,
I added as both versions below.

<?php do_shortcode(‘[[sangar-slider id=63]]’); ?>
<?php do_shortcode(‘[sangar-slider id=63]’); ?>

I added both versions to the Landing Page Template PHP file and the Functions PHP file. None of it did anything. Is there something I need to do to call it up on the page once it’s added? When I try to add a featured page I don’t have any options but the pics I’ve got uploaded.

Thanks.

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
Moderator 0 on November 12, 2015

Hi,

Just use single square bracket [ ], and single quote.

<?php do_shortcode(‘[sangar-slider id=63]’); ?>
  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
0 on November 12, 2015

Which php file should it be added too?

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
Moderator 0 on November 13, 2015

Hi Joshua,

Depending on where do you want to show your slider. If you want to show in homepage, try add the code into index.php/homepage.php or similiar 🙂

Thank you

  • Liked by
Cancel
Support Hours:
Weekdays: 09.00 - 17.00
Weekend: Off

By using the forum you are agree with tonjoo studio license agreement

Message :
Loading more replies
You are not logged in

Please login here or simply sign up here .