jyotiray Posted November 17, 2018 Share Posted November 17, 2018 How to add an Infographic inside a post like this? Basically, I want to add an infographic in my blog post and I want to show a bit of it. When a user will click on the image, the image will be expanded. But the URL will be the same. Here's how I want: https://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-your-wordpress-blog-infographic Thanks Link to comment Share on other sites More sharing options...
iwato Posted November 17, 2018 Share Posted November 17, 2018 Have you examined the URL carefully? BEFORE YOU CLICK: https://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-your-wordpress-blog-infographic AFTER YOU CLICK https://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-your-wordpress-blog-infographic/?display=wide Notice that a query with a key-value pair has been added. /?display=wide That is a call to PHP code on the same document page that reloads the reloads the page with new content. As no one can see the PHP but the creator and/or webpage host, it is difficult to know how it was achieve. One way, however, might be to use a PHP header() statement and simply reload the page with new content header("Location: https://www.wpbeginner.com/beginners-guide/why-you-need-a-cdn-for-your-wordpress-blog-infographic"); I have never tried to do this before, but others may be able to confirm or disconfirm whether it will work. I, myself, can imagine no objection. Roddy Link to comment Share on other sites More sharing options...
jyotiray Posted November 18, 2018 Author Share Posted November 18, 2018 Solved Link to comment Share on other sites More sharing options...
iwato Posted November 18, 2018 Share Posted November 18, 2018 Great! Now please pass your cursor over the heart and click on the trophy to say thanks! I hope that it was because of me that you were able to achieve your goal. Roddy Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now