- This topic has 6 replies, 3 voices, and was last updated 3 years, 9 months ago by Leo.
-
AuthorPosts
-
June 12, 2020 at 3:44 am #1324808Michael
Hi all,
I’m attempting to add webp images to the footer but for some reason customizer is stripping the the additional html:
<div class="featured-in"> <p>As Featured In:</p> <picture> <source srcset="https://reclaimdesign.org/wp-content/uploads/as-featured-in-trim.webp" type="image/webp"> <source srcset="https://reclaimdesign.org/wp-content/uploads/as-featured-in-trim.jpg" type="image/jpeg"> <img src="https://reclaimdesign.org/wp-content/uploads/as-featured-in-trim.jpg" alt="Publications we have been featured in | Reclaim Design" title="Reclaim Design As Featured In: Condé Nast | SA Garden & Home | House & Leisure | SA Homeowner | Elle Decor | Home | VISI" width="960" height="55" /> </picture> </div>
After saving in customizer becomes:
https://www.dropbox.com/s/0qf9r5hf4m1k9t1/customizer-stripping-picture-webp.jpg?dl=0
And I’ve changed the blog button text to read “Read Article” inside customizer:
https://www.dropbox.com/s/hikiqkox9mlzii6/customizer.jpg?dl=0
But for some reason, after clearing caches, it still shows as “Read more”:
https://www.dropbox.com/s/ci4w3adzyz6p5k8/read-more.jpg?dl=0
Thank you for your help!
June 12, 2020 at 7:28 am #1325008DavidStaffCustomer SupportHi there,
1. try adding your HTML using a HTML Widget in the footer bar.
2. If you’re using a custom excerpt i assume you’re using this function:
https://docs.generatepress.com/article/activating-read-custom-excerpt/#read-more-button
If so you need to change the
Read More
in that PHP snippetJune 12, 2020 at 7:41 am #1325018MichaelHi David,
Thank you for getting back to me. You are absolutely right. I forgot all about that code snippet for the Read More button. I’m glad your memory is better than mine!
I’m not sure how to go about adding an html widget to the footer. I currently have the code within the copyright box in the footer widget of customizer.
Is there a snippet that allows for alternate text to be added to featured images as links in the blog page? According the the Google web dev test it’s a good idea for accessibility according (and can help me get my score for that section in the green I think!)
Thank you for your help.
Michael.
June 12, 2020 at 9:31 am #1325314MichaelI’m also having a devil of a time in removing google fonts. I am serving them locally and have included excerpts to remove Google Fonts from GP and one to include the local fonts in customizer:
add_action( 'wp_enqueue_scripts', function() { wp_dequeue_style( 'generate-fonts' ); } );
add_filter( 'generate_typography_default_fonts', function( $fonts ) { $fonts[] = 'Open Sans'; $fonts[] = 'Carrois Gothic'; $fonts[] = 'Ico Moon'; return $fonts; } );
add_action( 'admin_init', function() { add_filter( 'generate_google_fonts_array', '__return_empty_array' ); } );
But when I check in Chrome dev tools it shows:
https://www.dropbox.com/s/ac7784vql7p7ten/fonts-googleapis.jpg?dl=0
After clearing caches it is still being called. I have been unable to work out where this call is coming from.
I have tried a couple of plugin options to remove as well, but none have worked.
Please can you advise if there is something left in GP that I need to remove?
Thanks again you for your help.
Michael.
June 12, 2020 at 9:48 am #1325340LeoStaffCustomer SupportHave you tried the footer bar widget area?
https://docs.generatepress.com/article/footer-bar-widget-area/Is there a snippet that allows for alternate text to be added to featured images as links in the blog page?
Not sure if I understand. Can you explain a bit more?
Please be mindful of our forum rule and keep one question at the time:
https://www.screencast.com/t/XCJOm5ehKDThanks!
June 12, 2020 at 10:47 am #1325400MichaelHi Leo,
Thanks for getting back to me. I’ve just seen that I forgot to add alt text in the media library for that featured image, so that has taken care of that 🙂
Sorry for the additional question. I will open a different one for that.
Michael.
June 12, 2020 at 12:50 pm #1325538LeoStaffCustomer SupportNo problem 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.