Slider
-
Hi!
Why can′t I change the picture in the slider? I can′t find it. When I first started to make the page I put in two pictures in the slider. But now I can′t find where to put in more pictures?? Please see https://www.elajza.comKind Regards
Jennie
-
Hi Jennie,
Which slider plugin are you using?
Best,
JustinThe one that comes with the Sixteen theme. But when I go to the “Slider Settings” for Sixteen there are no longer any info.
https://www.elajza.com//Jennie
I found the “Slider settings” in the options.php. See below. Is there anything wrong in the code?
<?php
/**
* A unique identifier is defined to store the options in the database and reference them from the theme.
* By default it uses the theme name, in lowercase and without spaces, but this can be changed if needed.
* If the identifier changes, it’ll appear as if the options have been reset.
*/function optionsframework_option_name() {
// This gets the theme name from the stylesheet
$themename = wp_get_theme();
$themename = preg_replace(“/\W/”, “_”, strtolower($themename) );$optionsframework_settings = get_option( ‘optionsframework’ );
$optionsframework_settings[‘id’] = $themename;
update_option( ‘optionsframework’, $optionsframework_settings );
}/**
* Defines an array of options that will be used to generate the settings page and be saved in the database.
* When creating the ‘id’ fields, make sure to use all lowercase and no spaces.
*
* If you are making your theme translatable, you should replace ‘sixteen’
* with the actual text domain for your theme. Read more:
* https://codex.www.ads-software.com/Function_Reference/load_theme_textdomain
*/function optionsframework_options() {
$options = array();
$imagepath = get_template_directory_uri() . ‘/images/’;//Basic Settings
$options[] = array(
‘name’ => __(‘Basic Settings’, ‘sixteen’),
‘type’ => ‘heading’);$options[] = array(
‘name’ => __(‘Copyright Text’, ‘sixteen’),
‘desc’ => __(‘Some Text regarding copyright of your site, you would like to display in the footer.’, ‘sixteen’),
‘id’ => ‘footertext2’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘To have more customization options including Analytics, Custom Header/Footer Scripts Upgrade to Pro at Just $24.95′),
‘std’ => ”,
‘type’ => ‘info’);//Layout Settings
$options[] = array(
‘name’ => __(‘Layout Settings’, ‘sixteen’),
‘type’ => ‘heading’);$options[] = array(
‘name’ => “Sidebar Layout”,
‘desc’ => “Select Layout for Posts & Pages.”,
‘id’ => “sidebar-layout”,
‘std’ => “right”,
‘type’ => “images”,
‘options’ => array(
‘left’ => $imagepath . ‘2cl.png’,
‘right’ => $imagepath . ‘2cr.png’)
);$options[] = array(
‘desc’ => __(‘Pro Version supports the option to add custom themes, styles & Layouts. Upgrade at Just $24.95.’),
‘std’ => ”,
‘type’ => ‘info’);$options[] = array(
‘name’ => __(‘Custom CSS’, ‘sixteen’),
‘desc’ => __(‘Some Custom Styling for your site. Place any css codes here instead of the style.css file.’, ‘sixteen’),
‘id’ => ‘style2’,
‘std’ => ”,
‘type’ => ‘textarea’);//SLIDER SETTINGS
$options[] = array(
‘name’ => __(‘Slider Settings’, ‘sixteen’),
‘type’ => ‘heading’);$options[] = array(
‘name’ => __(‘Enable Slider’, ‘sixteen’),
‘desc’ => __(‘Check this to Enable Slider.’, ‘sixteen’),
‘id’ => ‘slider_enabled’,
‘type’ => ‘checkbox’,
‘std’ => ‘0’ );$options[] = array(
‘desc’ => __(‘This Slider supports upto 5 Images. To show only 3 Slides in the slider, upload only 3 images. Leave the rest Blank. For best results, upload images of width 1180px.’, ‘sixteen’),
‘type’ => ‘info’);$options[] = array(
‘desc’ => __(‘In the Pro Version (Sixteen Plus) there are options to customize slider by choosing form over 16 animation effects, ability to set transition time and speed and more. Pro Version Supports More than 5 Slides. Upgrade at Just $24.95′),
‘std’ => ”,
‘type’ => ‘info’);$options[] = array(
‘name’ => __(‘Slider Image 1’, ‘sixteen’),
‘desc’ => __(‘First Slide’, ‘sixteen’),
‘id’ => ‘slide1’,
‘class’ => ”,
‘type’ => ‘upload’);$options[] = array(
‘desc’ => __(‘Title’, ‘sixteen’),
‘id’ => ‘slidetitle1’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘Description or Tagline’, ‘sixteen’),
‘id’ => ‘slidedesc1’,
‘std’ => ”,
‘type’ => ‘textarea’);$options[] = array(
‘desc’ => __(‘Url’, ‘sixteen’),
‘id’ => ‘slideurl1’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘name’ => __(‘Slider Image 2’, ‘sixteen’),
‘desc’ => __(‘Second Slide’, ‘sixteen’),
‘class’ => ”,
‘id’ => ‘slide2’,
‘type’ => ‘upload’);$options[] = array(
‘desc’ => __(‘Title’, ‘sixteen’),
‘id’ => ‘slidetitle2’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘Description or Tagline’, ‘sixteen’),
‘id’ => ‘slidedesc2’,
‘std’ => ”,
‘type’ => ‘textarea’);$options[] = array(
‘desc’ => __(‘Url’, ‘sixteen’),
‘id’ => ‘slideurl2’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘name’ => __(‘Slider Image 3’, ‘sixteen’),
‘desc’ => __(‘Third Slide’, ‘sixteen’),
‘id’ => ‘slide3’,
‘class’ => ”,
‘type’ => ‘upload’);$options[] = array(
‘desc’ => __(‘Title’, ‘sixteen’),
‘id’ => ‘slidetitle3’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘Description or Tagline’, ‘sixteen’),
‘id’ => ‘slidedesc3’,
‘std’ => ”,
‘type’ => ‘textarea’);$options[] = array(
‘desc’ => __(‘Url’, ‘sixteen’),
‘id’ => ‘slideurl3’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘name’ => __(‘Slider Image 4’, ‘sixteen’),
‘desc’ => __(‘Fourth Slide’, ‘sixteen’),
‘id’ => ‘slide4’,
‘class’ => ”,
‘type’ => ‘upload’);$options[] = array(
‘desc’ => __(‘Title’, ‘sixteen’),
‘id’ => ‘slidetitle4’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘Description or Tagline’, ‘sixteen’),
‘id’ => ‘slidedesc4’,
‘std’ => ”,
‘type’ => ‘textarea’);$options[] = array(
‘desc’ => __(‘Url’, ‘sixteen’),
‘id’ => ‘slideurl4’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘name’ => __(‘Slider Image 5’, ‘sixteen’),
‘desc’ => __(‘Fifth Slide’, ‘sixteen’),
‘id’ => ‘slide5’,
‘class’ => ”,
‘type’ => ‘upload’);$options[] = array(
‘desc’ => __(‘Title’, ‘sixteen’),
‘id’ => ‘slidetitle5’,
‘std’ => ”,
‘type’ => ‘text’);$options[] = array(
‘desc’ => __(‘Description or Tagline’, ‘sixteen’),
‘id’ => ‘slidedesc5’,
‘std’ => ”,
‘type’ => ‘textarea’);$options[] = array(
‘desc’ => __(‘Url’, ‘sixteen’),
‘id’ => ‘slideurl5’,
‘std’ => ”,
‘type’ => ‘text’);I found the problem. Using Safari – you can’t se the slider options. But when I use Firefox I can see it.
- The topic ‘Slider’ is closed to new replies.