• Hey! I wonder if someone has any clue on how to add an image to use as the working button for hiding/revealing content?

    Thanks in advance!
    Best,
    Fredrik

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author David Artiss

    (@dartiss)

    Hi @fskogsrud,

    *raises hand in the air* I know! I know!

    You need to specify a parameter of folder= and then, either a URL of where you have the icons, or a folder name under wp-content/uploads/content-reveal/. The icons must be named image1 and image2 and can be either .gif or .png images (and to specify which you use the ext= parameter).

    So, as an example, you might specify…

    [reveal heading="<h2>%image% Some Blah Content Below</h2>" id="id1" folder="newicons" ext="png"]Blah, blah, blah content here[/reveal]

    Thread Starter fskogsrud

    (@fskogsrud)

    Thank you so much for replying, dartiss!

    However, I could not get this to work. I did exactly as you wrote, and ended up with this code:

    [reveal heading=”<h2>%image% Some Blah Content Below</h2>” id=”id1″ folder=”icons” ext=”png”]Blah, blah, blah content here[/reveal]

    – I created a folder inside uploads/content-reveal named icons.
    – I renamed desired image to “image1.png”

    This is how it turned out:
    A) https://imgur.com/CBtXg7m
    B) https://imgur.com/oRw9NCj

    This is really tricky. So thanks a ton for helping me out!

    Plugin Author David Artiss

    (@dartiss)

    That’s odd. It would be nice to see the code behind this. Would you be able to set this up on a test page and let me know the URL so that I can take a look?

    Thread Starter fskogsrud

    (@fskogsrud)

    Sorry for the late reply, has been a lot to do lately. I put it on a test-page for you to see here:

    https://www.thelostcause.co/test/

    Thank you so much!
    Fredrik

    Plugin Author David Artiss

    (@dartiss)

    Apologies for the delay in replying – I’ve moved jobs and, well, my plugin work has had to take a back-seat for a time. I’m trying to get on top of it again, though.

    Right, I can see the page source is attempted to display the image at the following location…

    https://www.thelostcause.co/wp-content/uploads/content-reveal/icons/image1.png

    But if you put that into a browser it shows a ‘page not found’. Either the image isn’t there or you have some kind of security in place that prevents it from being viewed. You’ll need to take a look at that further to try and get to the bottom of this.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image button’ is closed to new replies.