• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper

This forum is now closed to new posts

All existing content remains available to browse and search. For support, please email us at contact@tagdiv.com Our team is happy to help as soon as possible.

Home Newspaper Where to put this code?

Where to put this code?

Posted in: Newspaper
Post count: 5
josephl77
#23917
Oct 11, 2014 at 8:08 am

I’m using WordPress Social Login and trying to figure out where to insert this code into td_login_widget.php so that it shows up in the form?

https://drive.google.com/file/d/0Bzax_bFhmTjZbDV1M0dOc2x0ZVU/view?usp=sharing

Shows up in wp-login:

https://drive.google.com/file/d/0Bzax_bFhmTjZWVU2QVVIMVAtRnM/view?usp=sharing

This is the code: <?php do_action( ‘wordpress_social_login’ ); ?>

I’ve able to login no problems using a widget and placing it directly on the home page.

Thanks.

Post count: 6600
Lucian
#23969
Oct 13, 2014 at 1:40 pm

Hi,

Please add it using the do_shortcode() function like this: http://screencast.com/t/a8B0TRtck
Here you have the td_login_widget.php file code with the WSL added: http://pastebin.com/FgFmSznX
Or just add this line: do_shortcode('[wordpress_social_login]') like shown in the screenshot above.

Thanks

Post count: 5
josephl77
#24154
Oct 15, 2014 at 9:03 am

Thanks Lucian, that worked great but how do I move the “log in” button down a bit?

https://drive.google.com/file/d/0Bzax_bFhmTjZeXR0enlOT01OR00/view?usp=sharing

Thanks again!

Post count: 6600
Lucian
#24195
Oct 15, 2014 at 2:17 pm

Hi,

You can do it using this custom css, add it in theme panel > custom css: http://screencast.com/t/PQZDK6ktBnP

.td-login-wrap .td-login-info-text {
margin-top: 40px !important;
}

.td-login-wrap .td-login-button {
bottom: 10px !important;
}

Thanks

Post count: 6
essen trinken
#58274
Jul 7, 2015 at 1:11 pm

Hi Lucian,

In Version 6.2, where should we put this code?
Please advise, many thanks in advance.

Cheers.

Post count: 6
essen trinken
#58369
Jul 7, 2015 at 6:04 pm

Solved! It’s in top-menu.php

Post count: 10
enpomedia
#61742
Jul 29, 2015 at 11:29 pm

Hello there,

I was able to add my login box by adding the following code on line 77

<div class=”td-login-info-text”>‘ . __td(‘Forgot your password?’) . ‘</div>’ . do_shortcode(‘[userpro template=login]’) . ‘</div>

It sort of works but the old login widget still appears on top of mine, Can you please tell me how can I make it dissapear?

Thanks

Post count: 6600
Lucian
#63072
Aug 6, 2015 at 9:29 am

Hi enpomedia,

Sorry for the elate reply however we have missed your posts here.
I’m not sure of the result you get so could you please provide a link to inspect this is you haven’t managed to solve this.

Thanks

Post count: 156
AilyRoot
#67224
Sep 3, 2015 at 10:33 am

thanks for this tip, it helps a lot

just to let others know that file to edit on V6 is

public_html/wp-content/themes/Newspaper/parts/header/top-menu.php

around line 77

Post count: 18
thrivehl
#71212
Sep 27, 2015 at 3:20 am

I decided to put the plugin Social Login on both the login and register tabs.
https://drive.google.com/file/d/0B_wGP-lpxx5QdGV6dENDdGRfSWs/view?usp=sharing

I did what Lucian said to resize the box and “submit” button through the custom css. It worked when I only had the plugin on the login page but stopped responding when I put it in the register tab.
https://drive.google.com/file/d/0B_wGP-lpxx5QdnpLejFUMmxlV1U/view?usp=sharing

Also, the page seems to load slower when I had the plugin in the “login/join” popup widget. Can you check to make sure I did the coding right?

Post count: 208
doucare1971
#72264
Oct 1, 2015 at 10:33 pm

Would be nice to have this implemented by default for social login on the modal. Then we wouldn’t have to add each time we update theme or have to use child theme if we did not want to. On Newsmag theme too.

  • This reply was modified 10 years by doucare1971.
Post count: 436
Nano
#132614
Sep 9, 2016 at 8:59 am

Hello Devs,

Are these method still valid? I have tried to implement the process that Lucian suggested in his reply but the screenshot that he had used to show the location is now not working and is invalid. Here is his screenshot link: http://screencast.com/t/a8B0TRtck

I am using WP Facebook Login ( Link ) and it supports following code :


<?php do_action('facebook_login_button');?>

It also supports the following shortcode:


[fbl_login_button redirect="" hide_if_logged=""]

Please let me know where should I add this code? Which code should I insert there the php code or the shortcode? As some commenter suggested above, it should be added here: public_html/wp-content/themes/Newspaper/parts/header/top-menu.php

but then the guy who insitiated this thread said that the code should be added “td_login_widget.php”

I am super confused. This is very important thread and have been referred by many of you under various posts. It will be really great if you can update the solution based on the current requirement.

Thank you very much.

Post count: 23312
Catalin
#132646
Sep 9, 2016 at 10:23 am

Hello nano2408,

Replied via another topic here -> https://forum.tagdiv.com/topic/adding-facebook-login-button-to-our-ajax-based-login-popup/

Thanks.

Post count: 436
Nano
#132672
Sep 9, 2016 at 12:02 pm

Yup! I read that and replied you again there. Thank you.

Viewing 14 posts - 1 through 14 (of 14 total)
The forum ‘Newspaper’ is closed to new topics and replies.
josephl77
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo