Adding slides as default
-
I want to set two sliders as default for users when they install a theme (e.g., when a user installs the theme and goes to Theme Options–>Front Page Slider, they will already see two slider images with the option to add more or modify the default slides. This is for a course I’m teaching and I need to really guide my students with a lot of default values.
I want users to see this in theme options when they go to front-page slider by default:
How do I add default sliders with list-item?
Here’s part of what I have so far and it’s not even close to working. Thanks in advance!
array(
‘id’ => ‘homepage_slider’,
‘label’ => ‘Slider: Slide Manager’,
‘desc’ => ‘Upload images that you’d like used as slides on the default homepage layout, as well as a simple destination URL for when visitors click each slide.Note: The theme will automatically resize any oversized images to fit the space’,
‘std’ => ”,
‘type’ => ‘list-item’,
‘section’ => ‘skeleton_slider’,
‘class’ => ”,
‘choices’ => array(),
‘settings’ => array(
array(
‘id’ => ‘slider_image’,
‘label’ => ‘image’,
‘desc’ => ”,
‘std’ => ‘https://stat-ass3.ses.com/12230313/banner-blog-spreadingIdeas.jpg’,
‘type’ => ‘upload’,
‘class’ => ”,
‘choices’ => array()
),
array(
‘id’ => ‘slider_link’,
‘label’ => ‘Link to Post’,
‘desc’ => ‘Enter the posts url.’,
‘std’ => ‘https://digitalborn.org’,
‘type’ => ‘text’,
‘class’ => ”,
‘choices’ => array()
),
- The topic ‘Adding slides as default’ is closed to new replies.