Support » Plugin: Social Articles » Change link “new article” in buddypress profile with social articles

  • Resolved gigi1250

    (@gigi1250)


    Hi
    I only use this plugin (social articles) to list the articles created in the buddypress profile. I use another plugin to create articles on frontend.
    In the articles section of the buddypress profile, I have a “new article” link. How to change the target of this link to send to a specific page of my site (page of my other article creation plugin: frontier)?
    is it possible ?
    thanks a lot

    • This topic was modified 1 year, 5 months ago by gigi1250.
Viewing 1 replies (of 1 total)
  • Plugin Author Broobe

    (@broobe_dev)

    Hi! how are you?

    I think that the easier way to do that is using javascript. Otherwise you should modify the social articles core code and you won’t get updates 🙁

    You can try something like that using javascript:

    jQuery(function(){
    jQuery(“#wp-admin-bar-article-new-item a”).attr(‘href’, ‘/your-custom-link’);
    jQuery(“#new-personal-li a”).attr(‘href’, ‘/your-custom-link’);
    })

    You should include that code in your theme.

    Let me know if it helps.

    Thanks for using social articles!

Viewing 1 replies (of 1 total)
  • The topic ‘Change link “new article” in buddypress profile with social articles’ is closed to new replies.