• Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact
Log In

  • Home
  • Quick Start
    • Color Schemes
  • Documentation
    • Shortcodes
    • JaW Hooks
    • Screenshots of ThemeOptions
  • Tutorials
  • Forum
  • Contact

HomeCodeHow to Add Another Custom Banner
custom_banner (2)

How to Add Another Custom Banner

  • admin
  • Posted in Code
0
SHARES
SHARESHARESHARESHARE
SHARESHARE

please go to ..\plugins\jaw-widgets\widgets\ and open file jaw_banner_widget.php. You should see this

    protected $options = array(
        0 => array('id' => 'custom_banner',
            'description' => 'Banner',
            'type' => 'select',
            'values' => array(
                array('name' => 'Custom Banner 1', 'value' => '1'),
                array('name' => 'Custom Banner 2', 'value' => '2'),
                array('name' => 'Custom Banner 3', 'value' => '3'),
                array('name' => 'Custom Banner 4', 'value' => '4'),
                array('name' => 'Custom Banner 5', 'value' => '5')
            ),
            'default' => 'custom_banner_1',
        ),
    );

Simply add new line(s) after

array('name' => 'Custom Banner 5', 'value' => '5')

Do not forget to add a comma (if you want to add another line). Something like this

    protected $options = array(
        0 => array('id' => 'custom_banner',
            'description' => 'Banner',
            'type' => 'select',
            'values' => array(
                array('name' => 'Custom Banner 1', 'value' => '1'),
                array('name' => 'Custom Banner 2', 'value' => '2'),
                array('name' => 'Custom Banner 3', 'value' => '3'),
                array('name' => 'Custom Banner 4', 'value' => '4'),
                array('name' => 'Custom Banner 5', 'value' => '5'),
                array('name' => 'Your Custom Banner', 'value' => '6')
            ),
            'default' => 'custom_banner_1',
        ),
    );

Related Posts

menu-widget6
0 comments
CodeTutorials

How to add more Widget areas to menu.

wpseo2
0 comments
CodeTutorials

WordPress SEO Plugin Cannot Find an Image on JaW Gallery Page

exclude3
0 comments
Code

How to Exclude Elements for Image Effects

jaw-gallery-order (2)

How to Change Items Order in JaW Gallery

Post excerpt shows less letters than is set.

Related Posts

menu-widget6
0 comments
CodeTutorials

How to add more Widget areas to menu.

wpseo2
0 comments
CodeTutorials

WordPress SEO Plugin Cannot Find an Image on JaW Gallery Page

exclude3
0 comments
Code

How to Exclude Elements for Image Effects

wphooks
0 comments
CodeJaW HooksTutorials

Filter jaw_section_title

Tags

  • ad
  • ads
  • advertisement
  • banner
  • custom
  • image
  • pictur
  • slide
  • Was this Helpful ?
  • yes   no
Copyright © 2016 jawtemplates - WordPress Design Studio Disable responsivity