image not shown
-
I tried this but image is not shown, what’s wrong with the syntax?
[reveal heading=”%title%%image%” img_url=”full_path_to_image/image1.gif” id=”id1″ title1=”Read more…” title2=”Hide this…”]
-
Instead of specifying the full image URL, you should only give the URL to the folder. Then have 2 images inside – image1 and image2. If they’re not GIF use the ‘ext’ parameter to change it.
David.
Thank you!
Maybe it makes sense to update in your documentation with the exact syntax of the URL path, because it is not obvious and users may need to experiment before they found the correct way, just give the an example of how the img_url attribute should look like:
e.g.img_url=”wp-content/themes/theme-name/images/subfoldername/”
Yes, you’re right. I’ve only just dusted down the plugin for the first time in years and, yes, it needs an update. I’ll get that done soon.
David.
Hello,
I still dont understand how to use a custom image. Im not sure where should I put the coding. Ive uploaded the image to my wp but not sure what to do next.
Can you help? Thanks
Adi
You need to create a specific folder – somewhere, anywhere – which contains two image files named image1 and image2. They can have a GIF or PNG extension.
Then, when you use the [reveal] shortcode simply add the parameter of ‘img_url={folder URL}’, where {folder URL} is the URL of the folder you created above.
For example…
[reveal img_url='http://www.mysite.com/wp-content/images/']David.
Hi David,
Thanks for the reply.
May I know why do I need to upload 2 images? Thanks
Adi
Hi,
I have uploaded the images in my public html folder, and have used the shortcode example given and changed the url, but there’s an error stating this:
“Content Reveal: No heading was specified”
I’m confused 🙁
The example I gave above was just demonstrating how to add the parameter for the folder – there are other parameters you need to specify as well.
David.
David,
Im really a beginner here. I have no idea what parameters and where I should be putting them.
I really hope you can help me.
Thanks
Click on “Other Notes” above and then look for the section named “Using a Short Code” – that should be enough to get you started. Just add the parameter above for the image location.
David.
Hi David,
I managed to get what i want. Thanks.
A question, can I have more than one custom image as reveal heading for my content?
eg; Custom Image 1 for Content 1, Custom Image 2 for Content 2 ?
Of course – just specify a different folder for each.
David.
Should I duplicate the coding in php file and insert different img url for each or how?
PHP file? Do you mean the shortcode? For each instance just use the same shortcode + parameters but change the img_url parameter.
David.
Hi David,
What I meant by PHP file is, i actually edited the plugin php file in the plugin editor section in wordpress. I updated the existing file with my image url and all, and it did work. But only for one image.
I dont know how can I add another custom image url because I cannot update the same php file mentioned with additional (duplicate) coding.
and I have tried putting the shortcode parameters in my post/page editor but that didnt work. it didnt give me the same result as the one above.
Do you mind if i have your email or anything so that I can show you further what my concern and problem is? Id appreciate your help.
Thanks
Adi
The topic ‘image not shown’ is closed to new replies.