Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for your quick reply! I did try, it doesn’t change anything unfortunately.

    Regards, Renate

    I am having the exact same issue as as well. Can’t get rid of the grey, is there a solution?

    Thank you

    Thread Starter renate1975

    (@renate1975)

    Hello,

    I deactivated the app, and the problem is still there. Allthough it still feels like it has something to do with Momoyoga ;). It might be something I did when adding the link on the page? I haven’t touched the media menu during this process at all though. And I find it mystifying that it only occurs on the page with the momoyoga schedule, when every website page has a social menu.

    Any advice is welcome. I will post when I found a solution as well.

    Thread Starter renate1975

    (@renate1975)

    It’s been sorted! I have added srcset, to the code you gave in another thread, succesfully.

    add_filter( 'twentytwenty_site_logo', function( $html, $args, $classname, $contents ) {
    	if ( is_page_template( 'templates/template-cover.php' ) && has_custom_logo() ) {
    		$logo      = get_custom_logo();
    		$logo      = preg_replace( '@src="([^"]+)"@', 'src="http://www.placeholder.nl/wp-content/uploads/2020/04/cropped-logo-2.png", srcset="http://www.placeholder.nl/wp-content/uploads/2020/04/cropped-logo-2.png 616w, http://www.placeholder.nl/wp-content/uploads/2020/04/cropped-logo-2-300x225.png 300w" sizes="(max-width: 616px) 100vw, 616px" width="616" height="462"', $logo );				
    		$contents  = sprintf( $args['logo'], $logo, esc_html( get_bloginfo( 'name' ) ) );
    		$wrap      = $args['condition'] ? 'home_wrap' : 'single_wrap';
    		
    		return sprintf( $args[ $wrap ], $classname, $contents );
    		
    	}
    	
    	return $html;
    }, 10, 4 );
    • This reply was modified 6 years ago by renate1975.
    • This reply was modified 6 years ago by renate1975.
    • This reply was modified 6 years ago by renate1975.
    Thread Starter renate1975

    (@renate1975)

    Hello there,

    I have tried to add code to function.php in my childtheme. Including srcset, but it didn’t work and I deleted it again. Now: there is no logo on my cover template. Completely gone. But I have gone back to the original situation, so I don’t get it.

    Just an update of the complete mess I am in.

    renate1975

    (@renate1975)

    Correction:

    I was trying css as well, so that nothing showed isn’t completely down to your code. What actually happens when I just use your code:

    I see the logo that I see on every page. But when I check elements in my browser I see that the img src has actually changed (that is the right file), the srcset hasn’t.

    Sorry for the confusion!

    • This reply was modified 6 years ago by renate1975.
    renate1975

    (@renate1975)

    Hello,

    For some reason the ‘extra options for twenty twenty’ plugin, conflicts with the woocommerce plugin. So I thought I’d use your code above to change the logo image source for the cover template page. But something else happens: there’s no logo visible on the cover template. So the standard logo is gone, and nothing is replacing it.

    Do you have any idea how to fix this?

    Or: can you tell me how to erase all files of the twenty twenty plugin when removed? So I can completely start over with that plugin? Because on my testsite there is no conflict between the two. So that’s mystifying.

    Thank you so much!

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