• Resolved cristipaltin

    (@cristipaltin)


    Hello! It is possible to make the social menu links open in same page?
    I am using the social menu as custom links menu always visible on the top right.I did this by using some custom css.
    I tried using the same menu as primary and social, but is not working. The links are there if u mouse over, but no text or image.
    Thank you!

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hey there,

    Unfortunately, we can’t afford to help you with custom code. However, I hope one of the awesome volunteers here at www.ads-software.com forums will be able to assist you better ??

    Thread Starter cristipaltin

    (@cristipaltin)

    Hi!Thank you for your reply!
    It is possible to tell me where is the javascript that need modifying? I know what to change but i don’t know where! ?? Thank you!

    Hi there,
    If you provider the website url to check then i would suggest you better.
    Thanks

    Thread Starter cristipaltin

    (@cristipaltin)

    Hi! Thank you @mdshak for your reply.
    Here is the link
    https://Www.cristipaltin.ro

    • This reply was modified 7 years, 7 months ago by cristipaltin.

    Hi there,
    I can give only the solution to open the social menus at same page. Navigate to Admin > Appearance > Menus > Edit Custom social Menus > now refer the attached screenshot.

    Thread Starter cristipaltin

    (@cristipaltin)

    Hello!
    Thank you kindly for your reply.
    The “Open link ?n a new tab” box is not checked. I belive this works only for the primary menu.
    The social menu is scripted that way so every link opens ?n new tab. That’s way i need the javascript name/location.
    I believe i have to modify the code from:
    target=”_blank” to target=”_self”
    But i dont know where to find the javascript ??
    Thank’s again!

    Thread Starter cristipaltin

    (@cristipaltin)

    Hello! I finally got this figured out! Here it is!
    First install WPide plugin. This will allow you to modify the javascrips.
    Open plugin from the dashboard menu and in the top right box navigate to the theme javascript folder – themes/oblique/js and click on scrips.js
    Now delete the code under “//Open social links in a new tab”

    jQuery(function($) {
    $( ‘.social-navigation li a’ ).attr( ‘target’,’_self’ );
    });

    and save the file.
    Now when u test the page delete the browser cache or test it in another browser or incognito mode.
    With that code gone u can custom set each link where to open by using check box ” Open link in new tab” – see @mdshak picture above.
    That’s it! Cheers!

    Hi there,
    Brilliant! I am glad that you managed to resolve the issue. But new upgrade of theme will remove this fix. I explain you another method to prevent from theme upgrade. Just install this plugin . Now navigate to Admin > Custom CSS & JS > Add new JS > insert the following code.

    jQuery( '.social-navigation li a' ).removeAttr( 'target','_self' );

    Refer the attached screenshot.

    Thread Starter cristipaltin

    (@cristipaltin)

    Hi, @mdshak !
    Pls explain again what the code does. I did not understand.
    The code prevents the theme from upgrading of prevents the upgrade from modifying the social menu javascript?
    Thank you!

    Hi,
    You made in theme JS files If any update of theme release then your change will be remove automatic. So i gave you another method to prevent the code from theme update. Hope you will understand.

    Thread Starter cristipaltin

    (@cristipaltin)

    Ok ?? I will try your code. Thank you very much for your time!
    Cheers!

    Hi there,
    You are most welcome and i am always ready to support WordPress.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Social Menu Open in same page’ is closed to new replies.