• datenfalke

    (@datenfalke)


    You can create easily a Slider and insert a Shortcode with its ID in a Page or Post.

    I would like it even more if there would be a possibility to get a PHP code for inserting in a template.

    You can work around by copying the resulting JS sourcecode from a page into the template. But that is annoying if you want to change the template slider.

    I used a “Standard Slider” in the template and a per page slider for all pages I would like to have a different slider than the “Standard Slider”. Looks like these two Sliders are working on one page although you can see sometimes the first image form the “Standard Slider” for a short time.

    Perhaps it would be possible to code something for marking a Slider as “Global” and displaying this slider on all pages which do not have a shortcode in it?

    >>> Solution: Use the WordPress do_shortcode function <<<

    Thank you for the Plugin!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author jamesdbruner

    (@jamesdbruner)

    Hey datenfalke!

    Thanks for taking time to review my plugin and thank you for your feedback! Initially I did have a global option for the slider but in an attempt to remove as much bloat as possible I removed it and instead I suggest to users/developers that they use the do_shortcode function that’s built into WordPress. You do have a pretty unique situation though where you’re wanting a default slider on every page and then to override specific pages with a different slideshow. In that case I would create 2 templates in your theme and have one with a do_shortcode that outputs your “Standard Slider” and then a second template without any slideshow and then you can use the shortcode in combination with that template on those pages.

    Sorry if my rambling wasn’t very coherent. If you need me to explain further, just let me know… Haha ??

    You’re welcome, have a good one!

    Thread Starter datenfalke

    (@datenfalke)

    Hi James, thank you very much for your quick answer!

    I did not know the do_shortcode function until now ?? Great!

    I think I will be able to check with PHP if the page content contains a vegas shortcode. In this case I do not print the “standard-slider” in the template out.

    Problem solved!

    And you are right – the absence of bloat in the plugin makes it very nice!

    Perhaps you insert an info text about the do_shortcode beside the shortcode? For the next wordpress noob with the same problem.

    Thank you and have a nice day!
    Falco

    Plugin Author jamesdbruner

    (@jamesdbruner)

    Glad I could help. ??

    I do reference the do_shortcode function a little bit on the installation tab but maybe I should put it somewhere a little more obvious. I’ve also gone over it a couple times here in the support forms, so you’re probably right that I need to make it more apparent. Putting it next to the shortcode wouldn’t be a bad idea, I’ll consider it!

    Thanks again for your feedback, I appreciate it!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Nice Background Slider’ is closed to new replies.