I like to have the possibility to use the parallax effect in my custom theme. For posts or pages I have a custom shortcode where I can pass the link to the image to use and the text content for it, but I'm unable to find a way to manage this if I want to make use of the parallax for a page like the index or if I want to assign to a custom post type. Is there a good solution to let the user choice what Image to use and on what page? Thanks

  • Welcome to WPSE. What does your shortcode accomplish now? – jdm2112 Dec 2 '19 at 15:00
  • the shortcode will display a parallax jumbotron and the attributes will define the image to use and the additional id or class to add to the markup. maybe do_shortcode will do the trick? – sialfa Dec 2 '19 at 18:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.