• Resolved jdkapp1s

    (@jdkapp1s)


    Hello there,
    Is there a way to attach the front page banner to a page link without using a caption? Essentially the same thing as the slider but with a static image.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi @jdkapp1s,

    Hope you are having a great day and thanks for contacting us!

    The easiest way to do so, is to hide the caption using some CSS code snippet. I was browsing your site and couldn’t find where you’ve added. Could you share your URL so I can see this first hand?

    Thanks!
    Kind regards,
    Diego

    Thread Starter jdkapp1s

    (@jdkapp1s)

    It is on the home page right below the menu. There is currently no caption on it, just an image with words already displayed advertising the free download.

    Hi

    It is not possible to add a link to the image within the theme’s features, but you could add some jQuery code snippet in order to do so. Here is how:

    jQuery(document).ready(function($) {
    	jQuery(".frontpage-banner > img").wrap(jQuery('<a>',{href: 'https://google.com'}));
    });

    And replace the “https://google.com&#8221; URL to the link you want to send users.

    You could be able to add it in the Pro version in a specific field (like the additional css), but in the free one, there is no such a field. You’ll need to add that code to a child theme (https://codex.wordpress.org/Child_Themes), so you don’t loose the changes when you upgrade your theme.

    Please, let me know if you need any further assistance.
    Kind regards,
    Diego

    • This reply was modified 8 years, 2 months ago by corewpress.
    Thread Starter jdkapp1s

    (@jdkapp1s)

    Diego,
    I have the Pro version, but I received some errors after pasting the code into the “Additional CSS” field.

    Hi @jdkapp1s,

    The code I gave you doesn’t go into the CSS box, it goes into the Advanced area (where it says Google Analytics Code). Wrap it into <script> </script> tags.

    Please, let me know if you need any further assistance.
    Kind regards,
    Diego

    Thread Starter jdkapp1s

    (@jdkapp1s)

    Sorry, Diego. I pasted into the advanced box and attempted to wrap it inside <script> tags but just ended up pushing the banner image off the page.

    I don’t have much programming knowledge.

    Hi @jdkapp1s,

    I could help you by doing it myself, but I’ll need access to your Admin area. You can’t share that access here, because it goes against this support rules (as it is public). So I’ll ask you to contact me directly through our official support form here: https://www.lyrathemes.com/support/

    Please, let me know if you need any further assistance.
    Kind regards,
    Diego

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Front Page Banner’ is closed to new replies.