Title: Stathis G.'s Replies | WordPress.org

---

# Stathis G.

  [  ](https://wordpress.org/support/users/osios/)

 *   [Profile](https://wordpress.org/support/users/osios/)
 *   [Topics Started](https://wordpress.org/support/users/osios/topics/)
 *   [Replies Created](https://wordpress.org/support/users/osios/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/osios/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/osios/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/osios/engagements/)
 *   [Favorites](https://wordpress.org/support/users/osios/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Timologia for WooCommerce] Αποστολή email “Υπηρεσια ΑΑΔΕ δεν λειτουργη”](https://wordpress.org/support/topic/%ce%b1%cf%80%ce%bf%cf%83%cf%84%ce%bf%ce%bb%ce%ae-email-%cf%85%cf%80%ce%b7%cf%81%ce%b5%cf%83%ce%b9%ce%b1-%ce%b1%ce%b1%ce%b4%ce%b5-%ce%b4%ce%b5%ce%bd-%ce%bb%ce%b5%ce%b9%cf%84%ce%bf%cf%85%cf%81%ce%b3/)
 *  Thread Starter [Stathis G.](https://wordpress.org/support/users/osios/)
 * (@osios)
 * [2 years, 5 months ago](https://wordpress.org/support/topic/%ce%b1%cf%80%ce%bf%cf%83%cf%84%ce%bf%ce%bb%ce%ae-email-%cf%85%cf%80%ce%b7%cf%81%ce%b5%cf%83%ce%b9%ce%b1-%ce%b1%ce%b1%ce%b4%ce%b5-%ce%b4%ce%b5%ce%bd-%ce%bb%ce%b5%ce%b9%cf%84%ce%bf%cf%85%cf%81%ce%b3/#post-17340804)
 * Καλησπέρα σας,
 * Σας έχει αποσταλλεί το domain στο info σας. Ευχαριστώ.
    -  This reply was modified 2 years, 5 months ago by [Stathis G.](https://wordpress.org/support/users/osios/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Modal Login] Enabling the register button via the Widget](https://wordpress.org/support/topic/enabling-the-register-button-via-the-widget/)
 *  [Stathis G.](https://wordpress.org/support/users/osios/)
 * (@osios)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/enabling-the-register-button-via-the-widget/#post-3955242)
 * Hello there, I had the same problem and I managed to find a work around.
 * 1) In the wp-modal-login/includes/class-wp-modal-login.php, in function modal_login_btn
   and line 548 change:
 * `$link .= '<a href="#login-box" id="loginbox1" class="login wpml-btn login-window"
   >' . sprintf( _x( '%s', 'Login Text', 'geissinger-wpml' ), sanitize_text_field(
   $login_text ) ) . '</a></li>';`
    to:
 * `$link .= '<a href="#login-box" id="loginbox1" class="login wpml-btn login-window"
   >' . sprintf( _x( '%s', 'Login Text', 'geissinger-wpml' ), sanitize_text_field(
   $login_text ) ) . '</a></li>';`
 * 2) In file wp-modal-login/js/wp-modal-login.js make the following changes (WP
   uses minified version, so change to that first):
 * a) After Line 7 add: login_id = ‘#login-box’;
 * b) In Line 38 add:
 *     ```
       $('#loginbox1').click(function(e) {
       		// Remove any messages that currently exist.
       		$('.wpml-content > p.message').remove();
   
       		// Get the link set in the href attribute for the currently clicked element.
       		var form_field = '#login';
   
       		//alert(form_field);
       		$('.wpml-content').hide();
       		$('.section-container ' + form_field).fadeIn('fast');
   
       		e.preventDefault();
   
       		if(form_field === '#register') {
       			$(this).parent().fadeOut().removeClass().addClass('hide-login');
       		} else {
       			$('a[href="#login"]').parent().removeClass().addClass('inline').fadeOut();
       		}
       	});
       ```
   
 * 3) Then you can add to header.php or in any other template php this piece of 
   code:
 * `<a href="#register">Register</a>`
 * This should do the job.
 * Happy Coding Everybody!
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Modal Login] "Login or Logout / Register" instead of Login or Logout](https://wordpress.org/support/topic/login-or-logout-register-instead-of-login-or-logout/)
 *  [Stathis G.](https://wordpress.org/support/users/osios/)
 * (@osios)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/login-or-logout-register-instead-of-login-or-logout/#post-4334869)
 * Hello there, I had the same problem and I managed to find a work around.
 * 1) In the wp-modal-login/includes/class-wp-modal-login.php, in function modal_login_btn
   and line 548 change:
 * `$link .= '<a href="#login-box" id="loginbox1" class="login wpml-btn login-window"
   >' . sprintf( _x( '%s', 'Login Text', 'geissinger-wpml' ), sanitize_text_field(
   $login_text ) ) . '</a></li>';`
    to:
 * `$link .= '<a href="#login-box" id="loginbox1" class="login wpml-btn login-window"
   >' . sprintf( _x( '%s', 'Login Text', 'geissinger-wpml' ), sanitize_text_field(
   $login_text ) ) . '</a></li>';`
 * 2) In file wp-modal-login/js/wp-modal-login.js make the following changes (WP
   uses minified version, so change to that first):
 * a) After Line 7 add: login_id = ‘#login-box’;
 * b) In Line 38 add:
 *     ```
       $('#loginbox1').click(function(e) {
       		// Remove any messages that currently exist.
       		$('.wpml-content > p.message').remove();
   
       		// Get the link set in the href attribute for the currently clicked element.
       		var form_field = '#login';
   
       		//alert(form_field);
       		$('.wpml-content').hide();
       		$('.section-container ' + form_field).fadeIn('fast');
   
       		e.preventDefault();
   
       		if(form_field === '#register') {
       			$(this).parent().fadeOut().removeClass().addClass('hide-login');
       		} else {
       			$('a[href="#login"]').parent().removeClass().addClass('inline').fadeOut();
       		}
       	});
       ```
   
 * 3) Then you can add to header.php or in any other template php this piece of 
   code:
 * `<a href="#register">Register</a>`
 * This should do the job.
 * Happy Coding Everybody!
 * _[Moderator Note: Please post code & markup between backticks or use the code
   button. Your posted code may now have been permanently damaged by the forum’s
   parser.]_

Viewing 3 replies - 1 through 3 (of 3 total)