• tradesouthwest

    (@tradesouthwestgmailcom)


    Looking for help on creating a custom admin function to have multiple background (default) images for a theme that are part of the Theme (folder, “images”) so user can select one of the default—out of the box—images for a background.

    I have found some similar Admin ‘widgets’ but this one would be akin to having to choose from multiple background colors or like the Theme Option to choose from several Theme Colors. A simple pull-down selector or a simple row of thumbnails to choose from.

    It would be easy to put notes in the functions.php so user would easily change the name of the background image from default-image-1 to defautl-image-2 etc. but an Option in the Customizer would be great.

    Theme work: http://vizuit.com/wordpress-themes/tsw-wide/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Why not use a background slider? Just add one image to the slide and you got a static background image.

    Just be sure when inserting a new image to delete the old one so it won’t slide between the two.

    Karim

    Thread Starter tradesouthwest

    (@tradesouthwestgmailcom)

    That would be the simple (type of) answer I was looking for. Would you have any references to code for this? I can not quite picture converting a basic image slider to work on the body background….

    A link or a rough script function would help.

    Thanks for you fast response BTW.

    Thread Starter tradesouthwest

    (@tradesouthwestgmailcom)

    so far I have found a function to enqueue the css into the body tag but still need to find a form widget to put somewhere (may have to go in the functions.php) to parse the background images to select from. If I could use require_once in wordpress I would be set but WP does not allow it (it actually works but not in all browsers). get_template_part does not p[arse the form select option images either.

    Open for ideas.

    Use the vegas slider plugin, its made for background sliders, I think it will be a very nice solution. Sorry for slow respond = p

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Multiple background images Custom Option’ is closed to new replies.