Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1026859
    goalsarecool
    Participant

    How do I get the image to go to my link when clicked vs. WordPress.org? Here is what I’m using and it’s not working. The image shows up but doesn’t go to the link when clicked.

    Login Image = https://www.goalsarecool.com/wp-content/uploads/2016/05/GAClogo320x60-1.png

    Addons Home Content = href=”https://www.goalsarecool.com/member-dashboard”

    #1027416
    Lely
    Moderator

    Hi There,

    Thank you for posting in. This will need some customization.
    Open a text editor and copy the following code:

    	jQuery(document).ready(function($) {
       		$('#login a').attr('href','CUSTOM_LINK_HERE');
    	});

    Save the file as login.js.
    On you X child theme folder wp-content/themes/x-child upload login.js.
    Then add the following code on your child theme functions.php file:

    function login_js() {
        wp_enqueue_script( 'theme_js', get_stylesheet_directory_uri() . '/login.js', array( 'jquery' ), '1.0', true );
    }
    
    add_action('login_enqueue_scripts', 'login_js');
    

    Note to change CUSTOM_LINK_HERE to your custom link.

    Hope this helps.

  • <script> jQuery(function($){ $("#no-reply-1026859 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>