Change Footer Widget Links and have them open in a new tab

resolved (7 posts) (2 voices)

  1. SewingBuddies
    Member

    I have tried to find the solution to this one, but not having any success
    I have the actual text to change in appearance/widget/footer widget area and this has allowed me to change the titles of the footer sections and the link address
    But I cannot find anywhere to open them in a new window/tab.
    Read in one set of instructions to change the footer menu, I can't find that anywhere, it also said to change the screen options if you cant see the open in new tab section, my screen options only has "Enable accessibility mode" and that didn't help.
    Help Please, going slightly crazy

    Kind Regards

    Juanita

    Posted 3 years ago #
  2. Elliott
    Support

    Hello SewingBuddies,

    Add this in Dashboard -> your theme -> General Settings -> Custom Javascript,

    jQuery("#footer a").attr('target', '_blank');

    Posted 3 years ago #
  3. SewingBuddies
    Member

    Hi Elliot,

    Unfortunately the custom javascript above did't work for me, any other suggestions?

    Thank you

    Juanita

    Posted 3 years ago #
  4. Elliott
    Support

    Send us a link and paste the full contents of your custom javascript field.

    Posted 3 years ago #
  5. SewingBuddies
    Member

    Hi Elliot,
    Copy of link below (site not actually live as such at this stage just building)

    http://www.sewingbuddies.com.au/blog/

    Copy of Custom Javascript

    jQuery(document).ready(function(){
    jQuery('.fancy_image a').attr('target', '_blank');
    });

    jQuery('.social_icon a').attr('target', '_blank');

    jQuery('#slider_module a').attr('target', '_blank');

    jQuery("#footer a').attr('target', '_blank');

    Thank you for all your help I really do appreciate it

    Kind Regards

    Juanita

    Posted 3 years ago #
  6. Elliott
    Support

    There was a typo, try this,

    jQuery("#footer a").attr('target', '_blank');

    Posted 3 years ago #
  7. SewingBuddies
    Member

    Hi Elliot,

    Worked like a charm, your a miracle worker

    Thank you Thank you Thank you

    Posted 3 years ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme