Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter jrelgin

    (@jrelgin)

    Sorry, I meant to say theme directory.

    Cheers!

    Plugin Contributor Johan Steen

    (@artstorm)

    You can place and use button from your theme directory. Though, a relative url path would be difficult, as the relative url path to theme changes depending on where the user is in the site’s hierarchy, unless you only use the button in one single place, so it’s always on the same url.

    I assume you don’t want to use the full url with the domain name, so the closest you can come is then to use a path similar to this:

    /wp-content/themes/your-theme/your-button.png

    Cheers,
    Johan

    Thread Starter jrelgin

    (@jrelgin)

    Thank you for the quick reply, Johan. Hmm, it doesn’t seem to work. I’m developing locally now so I may have to wait until I get the site on a production server so I can use an absolute path.

    It would be handy if it could handle WordPress functions such as <?php echo get_template_directory_uri(); ?> , but I’m not going to pretend I know how difficult that might be.

    Anyway, thanks for the great plugin!

    Cheers,

    Jason

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Donate Button with relative path’ is closed to new replies.