Viewing 5 replies - 1 through 5 (of 5 total)
  • @mrhugo,

    I’m sure what you want to do it likely possible, but I’m not entirely sure what your setup is… can you provide more detail?

    Typically a header logo is loaded directly from a theme, or uploaded as a custom image in the theme. I just need more details to be sure the plugin makes sense for what you are wanting to do.

    Thread Starter mrhugo

    (@mrhugo)

    Thanks for a fast reply. I upload an image in the theme.

    @mrhugo,

    So the plugin is designed to load a random image that exists in the WordPress database. This is done by either providing a selection of attachment (image) IDs to the shortcode, or by providing a post ID to pull attachments (images) from.

    In your case, if you were to upload your images into the media library, you could then provide the IDs to the shortcode. You can use the shortcode in any content area or text widget. If you want to call the shortcode directly in a theme file, you can do so like this:

    <?php echo do_shortcode('[mpress_image_refresh attachment="19, 37, 940"]'); ?>

    Just replace the attachment IDs with your desired image IDs.

    Thread Starter mrhugo

    (@mrhugo)

    Thank you. Very much appreciated!
    I’will try this tomorrow. ??

    No problem! Glad I could help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Random logo on page refresh’ is closed to new replies.