keyword “Ver?nderungsprozess”
alt="Vera?nderungsprozess Digitalisierung Change Communcation ixtract"
It has really big problems in scanning text. As it warns that there is a much too long pragraph on the whole site, too. But there isn’t …
I activated alt settings in Rank Math options, did not cover the widget blindness … any ideas how to fix both of these issues?
Best
]]>First of all, thanks for the plugin, it is excellent.
I suggest you guys review the alt attribute for images, to get a better rank in web vitals from Google.
I’ve made a simple change in the button-contact.php file, and fixed, but if it came in the next update, I guess can help more users to the betters score too.
So, I’ve shared the file in the attachment.
Best regards,
<?php
final class PZF {
protected static $_instance = null;
public static function instance() {
if ( is_null( self::$_instance ) ) {
self::$_instance = new self();
}
return self::$_instance;
}
public function __construct() {
add_action( 'plugins_loaded', array( $this, 'init_hooks' ) );
}
public function init_hooks() {
add_action( 'wp_footer', array( $this, 'pzf_frontend' ) ); // add frontend to footer
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) ); //add style to frontend
add_action( 'admin_enqueue_scripts', array( $this, 'mw_enqueue_color_picker' ) ); // add scripts to frontend
}
//add style to frontend
public function enqueue_scripts() {
wp_enqueue_style( 'pzf-style', PZF_URL . 'css/style.css', array() );
}
// public function enqueue_scripts() {
// }
// add scripts to frontend
function mw_enqueue_color_picker() {
wp_enqueue_style( 'wp-color-picker' );
wp_enqueue_script( 'my-script-handle', PZF_URL . 'js/script.js', array( 'wp-color-picker' ), false, true );
}
// add frontend to footer theme
public function pzf_frontend() { ?>
<!-- if gom all in one show -->
<?php if(get_option('pzf_hide_default_all_in_one')){
$class_active_allinone = '';
}elseif (!get_option('pzf_enable_all_in_one')) {
$class_active_allinone = '';
}
else{
$class_active_allinone = 'active';
}?>
<div id="button-contact-vr" class="<?php echo $class_active_allinone;?>">
<div id="gom-all-in-one"><!-- v3 -->
<!-- contact form -->
<?php
if(get_option('pzf_enable_contact_form')){
?>
<div id="contact-form-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<img alt="Contatc Form" src="<?php echo PZF_URL.'img/icon'.get_option('pzf_icon_contact_form').'.png'; ?>" />
</div>
</div>
</div>
<?php }; ?>
<!-- end contact form -->
<!-- showroom -->
<?php
if(get_option('pzf_enable_showroom')){
?>
<div id="contact-showroom" class="button-contact <?php echo get_option('pzf_content_showroom')?'no-event':''; ?>">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<?php if(get_option('pzf_link_showroom')){ ?>
<a href="<?php echo get_option('pzf_link_showroom'); ?>" <?php echo get_option('pzf_link_newtab_showroom')?'target="_blank"':''; ?>>
<img alt="Contact Showroom" src="<?php echo PZF_URL.'img/showroom'.get_option('pzf_icon_showroom').'.png'; ?>" />
</a>
<?php }else{ ?>
<img alt="Contact Showroom" src="<?php echo PZF_URL.'img/icon'.get_option('pzf_icon_showroom').'.png'; ?>" />
<?php }; ?>
</div>
</div>
</div>
<?php }; ?>
<!-- end showroom -->
<!-- contact -->
<?php
if(get_option('pzf_contact_link')){
?>
<div id="contact-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<a href="<?php echo get_option('pzf_contact_link'); ?>">
<img alt="Contact VR" src="<?php echo PZF_URL.'img/contact.png'; ?>" />
</a>
</div>
</div>
</div>
<?php }; ?>
<!-- end contact -->
<!-- viber -->
<?php
if(get_option('pzf_viber')){
?>
<div id="viber-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<a target="_blank" href="viber://add?number=<?php echo preg_replace( '/\D/', '',get_option('pzf_viber')); ?>">
<img alt="Contact Viber" src="<?php echo PZF_URL.'img/viber.png'; ?>" />
</a>
</div>
</div>
</div>
<?php }; ?>
<!-- end viber -->
<!-- zalo -->
<?php
if(get_option('pzf_zalo')){
?>
<div id="zalo-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<a target="_blank" href="https://zalo.me/<?php echo preg_replace( '/\D/', '',get_option('pzf_zalo')); ?>">
<img alt="Contact Zalo" src="<?php echo PZF_URL.'img/zalo.png'; ?>" />
</a>
</div>
</div>
</div>
<?php }; ?>
<!-- end zalo -->
<!-- whatsapp -->
<?php
if(get_option('pzf_whatsapp')){
?>
<div id="whatsapp-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<a target="_blank" href=" https://wa.me/<?php echo preg_replace( '/\D/', '',get_option('pzf_whatsapp')); ?>">
<img alt="Contact Whatsapp" src="<?php echo PZF_URL.'img/whatsapp.png'; ?>" />
</a>
</div>
</div>
</div>
<?php }; ?>
<!-- end whatsapp -->
<!-- Phone -->
<?php
if(get_option('pzf_phone')){
?>
<div id="phone-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<a href="tel:<?php echo preg_replace( '/\D/', '',get_option('pzf_phone')); ?>">
<img alt="Contact Phone" src="<?php echo PZF_URL.'img/phone.png'; ?>" />
</a>
</div>
</div>
</div>
<?php
if(get_option('pzf_phone_bar') == '1'){ ?>
<div class="phone-bar phone-bar-n">
<a href="tel:<?php echo preg_replace( '/\D/', '',get_option('pzf_phone')); ?>">
<span class="text-phone"><?php echo get_option('pzf_phone'); ?></span>
</a>
</div>
<?php };?>
<?php }; ?>
<!-- end phone -->
</div><!-- end v3 class gom-all-in-one -->
<?php
if(get_option('pzf_enable_all_in_one')){ ?>
<div id="all-in-one-vr" class="button-contact">
<div class="phone-vr">
<div class="phone-vr-circle-fill"></div>
<div class="phone-vr-img-circle">
<img alt="Contact Phone all in one" src="<?php echo PZF_URL.'img/icon'.get_option('pzf_icon_all_in_one').'.png'; ?>" />
</div>
</div>
<?php
if(get_option('pzf_note_bar_all_in_one') == '1'){ ?>
<div class="phone-bar" style="background-color: <?php echo get_option('pzf_color_all_in_one'); ?>;">
<span class="text-phone"><?php echo get_option('pzf_note_all_in_one'); ?></span>
</div>
<?php };?>
</div>
<style type="text/css">.phone-bar-n{display: none;}</style>
<?php };?>
</div>
<!-- popup form -->
<div id="popup-form-contact-vr">
<div class="bg-popup-vr"></div>
<?php
if(get_option('pzf_max_w_contact_form')){
$pzf_max_w_contact_form = 'max-width:'.get_option('pzf_max_w_contact_form').'px;';
}else{
$pzf_max_w_contact_form = '';
}
if(get_option('pzf_bg_contact_form')){
$pzf_bg_contact_form = 'background:'.get_option('pzf_bg_contact_form').';';
}else{
$pzf_bg_contact_form = '';
}
?>
<div class="content-popup-vr" id="loco-<?php echo get_option('pzf_loco_img_contact_form'); ?>" style=" <?php echo $pzf_max_w_contact_form;echo $pzf_bg_contact_form; ?>">
<?php if(get_option('pzf_img_contact_form') and (get_option('pzf_loco_img_contact_form')=='left' or get_option('pzf_loco_img_contact_form')=='top') ){ ?>
<div class="content-popup-img-vr" id="loco<?php echo get_option('pzf_loco_img_contact_form'); ?>">
<img alt="Contact Form all in one" src="<?php echo get_option('pzf_img_contact_form'); ?>">
</div>
<?php } ?>
<div class="content-popup-div-vr">
<?php echo get_option('pzf_title_contact_form'); ?>
<?php echo do_shortcode(get_option('pzf_content_contact_form')); ?>
</div>
<?php if(get_option('pzf_img_contact_form') and (get_option('pzf_loco_img_contact_form')=='right' or get_option('pzf_loco_img_contact_form')=='bottom') ){ ?>
<div class="content-popup-img-vr" id="loco<?php echo get_option('pzf_loco_img_contact_form'); ?>">
<img alt="Contact Form popup" src="<?php echo get_option('pzf_img_contact_form'); ?>">
</div>
<?php } ?>
<div class="close-popup-vr">x</div>
</div>
</div>
<!-- Add custom css and js -->
<style type="text/css">
<?php echo get_option('pzf_add_css'); ?>
</style>
<?php echo get_option('pzf_add_js'); ?>
<!-- end Add custom css and js -->
<!-- popup showroom -->
<div id="popup-showroom-vr">
<div class="bg-popup-vr"></div>
<?php
if(get_option('pzf_max_w_showroom')){
$pzf_max_w_showroom = 'max-width:'.get_option('pzf_max_w_showroom').'px;';
}else{
$pzf_max_w_showroom = '';
}
if(get_option('pzf_bg_showroom')){
$pzf_bg_showroom = 'background:'.get_option('pzf_bg_showroom').';';
}else{
$pzf_bg_showroom = '';
}
?>
<div class="content-popup-vr" id="loco-<?php echo get_option('pzf_loco_img_contact_form'); ?>" style=" <?php echo $pzf_max_w_showroom;echo $pzf_bg_showroom; ?>">
<?php if(get_option('pzf_img_contact_form') and (get_option('pzf_loco_img_contact_form')=='left' or get_option('pzf_loco_img_contact_form')=='top') ){ ?>
<div class="content-popup-img-vr" id="loco<?php echo get_option('pzf_loco_img_contact_form'); ?>">
<img alt="Contact Content popup vr" src="<?php echo get_option('pzf_img_contact_form'); ?>">
</div>
<?php } ?>
<div class="content-popup-div-vr">
<?php echo do_shortcode(get_option('pzf_content_showroom')); ?>
</div>
<div class="close-popup-vr">x</div>
</div>
</div>
<script type="text/javascript">
jQuery(document).ready(function($){
$('#all-in-one-vr').click(function(){
$('#button-contact-vr').toggleClass('active');
})
$('#contact-form-vr').click(function(){
$('#popup-form-contact-vr').addClass('active');
})
$('div#popup-form-contact-vr .bg-popup-vr,div#popup-form-contact-vr .content-popup-vr .close-popup-vr').click(function(){
$('#popup-form-contact-vr').removeClass('active');
})
$('#contact-showroom').click(function(){
$('#popup-showroom-vr').addClass('active');
})
$('div#popup-showroom-vr .bg-popup-vr,.content-popup-vr .close-popup-vr').click(function(){
$('#popup-showroom-vr').removeClass('active');
})
});
</script>
<!-- end popup form -->
<!-- Facebook Messenger -->
<?php
if(get_option('pzf_id_fanpage')){
?>
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
FB.init({
xfbml : true,
version : 'v3.3'
});
};
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/vi_VN/sdk/xfbml.customerchat.js';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<!-- Your customer chat code -->
<div class="fb-customerchat"
attribution=setup_tool
page_id="<?php echo get_option('pzf_id_fanpage'); ?>"
theme_color="<?php echo get_option('pzf_color_fb') ? get_option("pzf_color_fb") : '#0084ff' ?>"
logged_in_greeting="<?php echo get_option('logged_in_greeting') ? get_option("logged_in_greeting") : 'Xin chào! Chúng t?i có th? giúp gì cho b?n?' ?>"
logged_out_greeting="<?php echo get_option('logged_in_greeting') ? get_option("logged_in_greeting") : 'Xin chào! Chúng t?i có th? giúp gì cho b?n?' ?>">
</div>
<?php }; ?>
<?php if(get_option('pzf_color_phone')){ ?>
<!-- color phone -->
<style>
.phone-bar a,#phone-vr .phone-vr-circle-fill,#phone-vr .phone-vr-img-circle,#phone-vr .phone-bar a {
background-color: <?php echo get_option('pzf_color_phone'); ?>;
}
#phone-vr .phone-vr-circle-fill {
opacity: 0.7;box-shadow: 0 0 0 0 <?php echo get_option('pzf_color_phone'); ?>;
}
</style>
<!-- color phone -->
<?php }; ?>
<?php if(get_option('pzf_color_contact_form')){ ?>
<!-- color contact form -->
<style>
.phone-bar a,#contact-form-vr .phone-vr-circle-fill,#contact-form-vr .phone-vr-img-circle,#contact-form-vr .phone-bar a {
background-color: <?php echo get_option('pzf_color_contact_form'); ?>;
}
#contact-form-vr .phone-vr-circle-fill {
opacity: 0.7;box-shadow: 0 0 0 0 <?php echo get_option('pzf_color_contact_form'); ?>;
}
</style>
<!-- color contact form -->
<?php }; ?>
<?php if(get_option('pzf_color_contact')){ ?>
<style>
#contact-vr .phone-vr-circle-fill,#contact-vr .phone-vr-img-circle {
background-color: <?php echo get_option('pzf_color_contact'); ?>;
}
#contact-vr .phone-vr-circle-fill {
opacity: 0.7;box-shadow: 0 0 0 0 <?php echo get_option('pzf_color_contact'); ?>;
}
</style>
<?php };?>
<?php if(get_option('pzf_color_showroom')){ ?>
<!-- color showroom -->
<style>
#contact-showroom .phone-vr-circle-fill,#contact-showroom .phone-vr-img-circle {
background-color: <?php echo get_option('pzf_color_showroom'); ?>;
}
#contact-showroom .phone-vr-circle-fill {
opacity: 0.7;box-shadow: 0 0 0 0 <?php echo get_option('pzf_color_showroom'); ?>;
}
</style>
<?php };?>
<?php if(get_option('pzf_color_all_in_one')){ ?>
<!-- color all in one -->
<style>
#all-in-one-vr .phone-vr-circle-fill,#all-in-one-vr .phone-vr-img-circle {
background-color: <?php echo get_option('pzf_color_all_in_one'); ?>;
}
#all-in-one-vr .phone-vr-circle-fill {
opacity: 0.7;box-shadow: 0 0 0 0 <?php echo get_option('pzf_color_all_in_one'); ?>;
}
</style>
<?php };?>
<?php if(get_option('setting_size')){?>
<!-- size scale -->
<style>
#button-contact-vr {transform: scale(<?php echo get_option('setting_size'); ?>);}
</style>
<?php
if(get_option('setting_size') < 0.9){ ?>
<style>
#button-contact-vr {margin: -10px;}
</style>
<?php
}elseif (get_option('setting_size') > 1.3) {?>
<style>
#button-contact-vr {margin: 10px;}
</style>
<?php };
};?>
<?php if(get_option('pzf_location') == 'right'){ ?>
<!-- location left right -->
<style>
#button-contact-vr {right:0;}
.phone-bar a {left: auto;right: 30px;padding: 8px 55px 7px 15px;}
#button-contact-vr.active #gom-all-in-one .button-contact {margin-left: 100%;}
</style>
<?php };?>
<?php if(get_option('pzf_location_bottom')){ ?>
<!-- location bottom -->
<style>
#button-contact-vr {bottom: <?php echo get_option('pzf_location_bottom'); ?>%;}
</style>
<?php };?>
<?php if(get_option('pzf_hide_mobile')){ ?>
<!-- hide mobile -->
<style>
@media(max-width: 736px){
#button-contact-vr {display: none;}
}
</style>
<?php };?>
<?php if(get_option('pzf_hide_desktop')){ ?>
<!-- hide desktop -->
<style>
@media(min-width: 736px){
#button-contact-vr {display: none;}
}
</style>
<?php };
}// add frontend to footer theme
}
?>
]]>Please help.
]]>// Simple Download Monitor: Add ALT attribute to download fancy 2 thumbnail
if ( is_plugin_active('simple-download-monitor/main.php') ) {
add_filter('sdm_download_fancy_2_thumbnail', function($thumb_output, $args) {
$download_id = $args['id'];
$download_thumb_url = get_post_meta($download_id, 'sdm_upload_thumbnail', true);
$download_thumb_alt = get_post_meta($download_id, '_wp_attachment_image_alt', true);
$thumb_output = '<img src="' . $download_thumb_url . '" alt="' . $download_thumb_alt . '" />';
return $thumb_output;
}, 10, 2);
}
May I know what is amiss, please? Thank you.
]]>This will help for better SEO of the images.
Not everybody likes it, we understand, in that case we can use a button, to allow or disallow automatic alt text creation.
Thanks.
]]><div
class="hu-pad group"><div
class="grid one-half">
<img
id="footer-logo" alt="" data-src="https://doktorb.it/wp-content/uploads/logoPP13tvn-s.png" class="lazyload" src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="><noscript><img
id="footer-logo" src="https://doktorb.it/wp-content/uploads/logoPP13tvn-s.png" alt=""></noscript><div
id="copyright"><p><strong><a
href='https://doktorB.it'>Andrzej P.Urbański ? 2021. All Rights Reserved.</a></strong></p></div></div
Source code from foorter.php file:
<img id="footer-logo" src="<?php echo $_footer_logo_img_src; ?>" alt="<?php get_bloginfo('name'); ?>">
Source code from general-template.php file:
function get_bloginfo( $show = '', $filter = 'raw' ) {
...
$output = get_option( 'blogname' );
]]>