Forum Replies Created

Viewing 15 replies - 1 through 15 (of 35 total)
  • Thread Starter dune1982

    (@dune1982)

    Thank you ying,
    that did the trick.

    perhaps you can help me with this one also.
    I have uploaded a 512x512px favicon in the customizer, but it only redirects to a 32×32 cropped version.

    32×32 is ok for me would the redirection go away if i just upload a 32x32px immage?

    Thread Starter dune1982

    (@dune1982)

    Hi David,
    it is a webp file mady by gimp.

    the way i see it the immage is added by GeneratePress without the width and height.

    Thread Starter dune1982

    (@dune1982)

    Hello bcworkz,
    thank you I get that. I got that working with overlay.

    But what I would like to have is that the title is always visible and at text below the title is only visible on hover. When not visible the text should not make the ovelay as big as it is on hover.

    This is what i have now.

    <!DOCTYPE html>
    <html>
    <head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style>
    * {box-sizing: border-box;}
    
    .container {
      position: relative;
      width: 50%;
      max-width: 300px;
    }
    
    .image {
      display: block;
      width: 100%;
      height: auto;
    }
    
    .overlay {
      position: absolute; 
      bottom: 0; 
      background: rgb(0, 0, 0);
      background: rgba(0, 0, 0, 0.5); /* Black see-through */
      color: #f1f1f1; 
      width: 100%;
      transition: .5s ease;
      opacity:0;
      color: white;
      font-size: 20px;
      padding: 20px;
      text-align: center;
      opacity: 1;
    }
    
    .container:hover .overlay {
      padding: 20px 0px 100px;
    }
    
    </style>
    </head>
    <body>
    
    <h2>Image Overlay Title</h2>
    <p>Hover over the image to see the effect.</p>
    
    <div class="container">
      <img src="img_avatar.png" alt="Avatar" class="image">
      <div class="overlay">My Name is John <p id="onlyonhover">text on hover</p></div>
    </div>
    
    </body>
    </html>
    • This reply was modified 3 years, 11 months ago by dune1982.
    Thread Starter dune1982

    (@dune1982)

    Hello Steven Stern,
    this is an interesting solution and sounds like it would be perfect.

    I’m not an expert with this so it would be cool if you could give me some more advice.

    So I would add this to my roots htaccess file:

    RewriteEngine On
    RewriteCond %{REQUEST_METHOD} POST
    RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
    RewriteCond %{HTTP_REFERER} !.*yourdomain.com.* [OR]
    RewriteCond %{HTTP_USER_AGENT} ^$
    RewriteRule (.*) https://%{REMOTE_ADDR}/$ [R=301,L]

    – instead of yourdomain.com I would use my domain.
    – what would I use for %{REQUEST_METHOD} as it is not about a post
    – what would I use for %{REQUEST_URI} is there a php file for the search or would I use the URL that is called from the bot here?

    Thanks for your help

    Thread Starter dune1982

    (@dune1982)

    Mmh funny thing, I made the search widget only visible for logged in useres two days ago. But still I have this url searches, the referrer is a google bot (see below).

    Is there any way to block this?

    Here is what is logged on a search
    2019-01-29 22:33:43 https://www.hesaids.com 0
    REQUEST_URI: /search/www.hesaids.com
    REQUEST_METHOD: HEAD
    QUERY_STRING:
    REMOTE_ADDR: 121.201.XXX.XXX
    HTTP_USER_AGENT: User-Agent=Mozilla/5.0 (compatible;googlebot/2.1)
    HTTP_REFERER: https://www.google.com/bot.html

    Thread Starter dune1982

    (@dune1982)

    Don’t get me wrong, WP Multilang is a great free plugin.

    Thread Starter dune1982

    (@dune1982)

    Hello Anticosti,
    no a second Plugin that Needs to be payed is not an Option. Then i would just buy WPML and have one Plugin that does it all.

    It’s a pity that WP Multilang can’t translate strings.

    Hello,
    I have the same problem with the /wp-content/cache/tmpWpfc folder, mine is at 2,57GB now. What is the folder for? Can I just clean it every once in a while?

    Thread Starter dune1982

    (@dune1982)

    mmh Ich habe mich mit der Sache auseinander gesetzt. Der Logout Filter in Zeile 310 sitzt in einer If Anweisung, wenn ich das richtig Verstehe passiert:

    Wenn der Filter woocommerce_gzd_user_activation_auto_login ein true liefert und is_user_logged_in() ein false liefert wird wc_set_customer_auth_cookie( $user->ID ); ausgeführt. Was den User einloggt.

    Sprich ich muss mit einem add_filter woocommerce_gzd_user_activation_auto_login in der functions.php eine Funktion aufrufen die false zurückliefert.

    In etwa so

    //Logout after account activation
    add_filter( 'woocommerce_gzd_user_activation_auto_login', 'my_activation_logout_thing', 10, 2 );
    function my_activation_logout_thing( $login, $user ) {
    	return false;
    }

    Habe ich das richtig Verstanden?

    Thread Starter dune1982

    (@dune1982)

    Hallo,
    Danke für deine Hilfe, das mit der functions.php im Chil-Theme ist mir bekannt. Habe bereits eine mit anderen Anpassungen darin.

    Habe es nur zuerst direkt in der Datei ge?ndert, sollte es dann nicht direkt die Wirkung zeigen ohne etwas in der functions.php

    Thread Starter dune1982

    (@dune1982)

    Vielen Dank für die schnelle Antwort.
    Bin mir jedoch nicht sicher ob ich die Filter verstehe.
    Habe in der Datei class-wc-gzd-customer-helper.php
    Die Zeilen 125,185,310 wie auf GitHub angegeben ausgetauscht, neue user sind aber immer noch direkt eingeloggt durch den aktivieren Link aus der Email.

    Thread Starter dune1982

    (@dune1982)

    Sorry for the Mr. But Thank you verry much for your work Ms. Epstein. This will help me a lot.

    Thread Starter dune1982

    (@dune1982)

    Thank you mr. Epstein,
    perhaps it helps if i send you the code frome the woocommerce Login/Registration form

    <?php
    /**
     * Login Form
     *
     * This template can be overridden by copying it to yourtheme/woocommerce/myaccount/form-login.php.
     *
     * HOWEVER, on occasion WooCommerce will need to update template files and you
     * (the theme developer) will need to copy the new files to your theme to
     * maintain compatibility. We try to do this as little as possible, but it does
     * happen. When this occurs the version of the template file will be bumped and
     * the readme will list any important changes.
     *
     * @see     https://docs.woocommerce.com/document/template-structure/
     * @author  WooThemes
     * @package WooCommerce/Templates
     * @version 2.6.0
     */
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit; // Exit if accessed directly
    }
    
    ?>
    
    <?php wc_print_notices(); ?>
    
    <?php do_action( 'woocommerce_before_customer_login_form' ); ?>
    
    <?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
    
    <div class="u-columns col2-set" id="customer_login">
    
    	<div class="u-column1 col-1">
    
    <?php endif; ?>
    
    		<h2><?php _e( 'Login', 'woocommerce' ); ?></h2>
    
    		<form method="post" class="login">
    
    			<?php do_action( 'woocommerce_login_form_start' ); ?>
    
    			<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
    				<label for="username"><?php _e( 'Username or email address', 'woocommerce' ); ?> <span class="required">*</span></label>
    				<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
    			</p>
    			<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
    				<label for="password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
    				<input class="woocommerce-Input woocommerce-Input--text input-text" type="password" name="password" id="password" />
    			</p>
    
    			<?php do_action( 'woocommerce_login_form' ); ?>
    
    			<p class="form-row">
    				<?php wp_nonce_field( 'woocommerce-login', 'woocommerce-login-nonce' ); ?>
    				<input type="submit" class="woocommerce-Button button" name="login" value="<?php esc_attr_e( 'Login', 'woocommerce' ); ?>" />
    				<label for="rememberme" class="inline">
    					<input class="woocommerce-Input woocommerce-Input--checkbox" name="rememberme" type="checkbox" id="rememberme" value="forever" /> <?php _e( 'Remember me', 'woocommerce' ); ?>
    				</label>
    			</p>
    			<p class="woocommerce-LostPassword lost_password">
    				<a href="<?php echo esc_url( wp_lostpassword_url() ); ?>"><?php _e( 'Lost your password?', 'woocommerce' ); ?></a>
    			</p>
    
    			<?php do_action( 'woocommerce_login_form_end' ); ?>
    
    		</form>
    
    <?php if ( get_option( 'woocommerce_enable_myaccount_registration' ) === 'yes' ) : ?>
    
    	</div>
    
    	<div class="u-column2 col-2">
    
    		<h2><?php _e( 'Register', 'woocommerce' ); ?></h2>
    
    		<form method="post" class="register">
    
    			<?php do_action( 'woocommerce_register_form_start' ); ?>
    
    			<?php if ( 'no' === get_option( 'woocommerce_registration_generate_username' ) ) : ?>
    
    				<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
    					<label for="reg_username"><?php _e( 'Username', 'woocommerce' ); ?> <span class="required">*</span></label>
    					<input type="text" class="woocommerce-Input woocommerce-Input--text input-text" name="username" id="reg_username" value="<?php if ( ! empty( $_POST['username'] ) ) echo esc_attr( $_POST['username'] ); ?>" />
    				</p>
    
    			<?php endif; ?>
    
    			<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
    				<label for="reg_email"><?php _e( 'Email address', 'woocommerce' ); ?> <span class="required">*</span></label>
    				<input type="email" class="woocommerce-Input woocommerce-Input--text input-text" name="email" id="reg_email" value="<?php if ( ! empty( $_POST['email'] ) ) echo esc_attr( $_POST['email'] ); ?>" />
    			</p>
    
    			<?php if ( 'no' === get_option( 'woocommerce_registration_generate_password' ) ) : ?>
    
    				<p class="woocommerce-FormRow woocommerce-FormRow--wide form-row form-row-wide">
    					<label for="reg_password"><?php _e( 'Password', 'woocommerce' ); ?> <span class="required">*</span></label>
    					<input type="password" class="woocommerce-Input woocommerce-Input--text input-text" name="password" id="reg_password" />
    				</p>
    
    			<?php endif; ?>
    
    			<!-- Spam Trap -->
    			<div style="<?php echo ( ( is_rtl() ) ? 'right' : 'left' ); ?>: -999em; position: absolute;"><label for="trap"><?php _e( 'Anti-spam', 'woocommerce' ); ?></label><input type="text" name="email_2" id="trap" tabindex="-1" autocomplete="off" /></div>
    
    			<?php do_action( 'woocommerce_register_form' ); ?>
    			<?php do_action( 'register_form' ); ?>
    
    			<p class="woocomerce-FormRow form-row">
    				<?php wp_nonce_field( 'woocommerce-register', 'woocommerce-register-nonce' ); ?>
    				<input type="submit" class="woocommerce-Button button" name="register" value="<?php esc_attr_e( 'Register', 'woocommerce' ); ?>" />
    			</p>
    
    			<?php do_action( 'woocommerce_register_form_end' ); ?>
    
    		</form>
    
    	</div>
    
    </div>
    <?php endif; ?>
    
    <?php do_action( 'woocommerce_after_customer_login_form' ); ?>
    Thread Starter dune1982

    (@dune1982)

    thank you bcworkz,
    ‘0;’ . $order->get_item_total( $item_data, false ),
    this works great.
    super

    Thread Starter dune1982

    (@dune1982)

    Hi,
    no up until now I have no solution. But if you should find something, please give me a hint.

    Thanks

Viewing 15 replies - 1 through 15 (of 35 total)