Andrzej P.Urbański
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Hueman 3.7.15 – empy alt attribute of img tag in footerI have changed alt body in footer.php by constants:
<img id="footer-logo" src="<?php echo $_footer_logo_img_src; ?>" alt="php get_bloginfo('name');">
and move it to haeman-child, which immediately remove empty alts:<div class="hu-pad group"><div class="grid one-half"> <img id="footer-logo" alt="php get_bloginfo('name');" 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="php get_bloginfo('name');"></noscript><div id="copyright">
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersHueman has been now updated to version 3.7.15.
But, it steel didn’t correctly update attribute “alt” in footer images(source view of running system where alt attribute is empty despite that in the form was filled):<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' );
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersDear Nicolas,
I’ve just have been completely purge cache in these browsers: FireFox, Edge and Avast secure browser.
It didn’t destroy like previously page view screen.
In case of Avast it has been made page working properly!
Success! Maybe it was a problem of cache refresh beetween 11 and 12 versions of Hueman.
Thank you for your help.
Sorry for disturbing you.
I will go back to hueman-child.
Good luck!
Greetings.Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersAs you requested, I’ve just disabled Hueman-child and update to Hueman.3.7.12. Screen of the Avast browser is invalid as I show you. Screens of FireFox and Edge are OK, but I don’t know how to refresh these browsers cache.
Please, help me.Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersIs there a file with my configuration of hueman theme which I can send you that you can copy my configuration?
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersIn the folder: themes/hueman-child I have 3 files:
style.css:/* Theme Name: Hueman Child Theme URI: https://doktorB.it/hueman-child/ Description: Hueman Child Theme Author: Andy Bit Author URI: https://doktorB.it Template: hueman Version: 3.7.11 License: GNU General Public License v2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Tags: light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready Text Domain: huemanchild */
functions.php:
<?php add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' ); function my_theme_enqueue_styles() { wp_enqueue_style( 'child-style', get_stylesheet_uri(), array( 'parenthandle' ), wp_get_theme()->get('Version') // this only works if you have Version in the style header ); }
comments.php:
<?php if ( post_password_required() ) { return; } ?> <section id="comments" class="themeform"> <?php if ( have_comments() ) : global $wp_query; ?> <h3 class="heading"><?php comments_number( __( 'No Responses', 'hueman' ), __( '1 Response', 'hueman' ), __( '% Responses', 'hueman' ) ); ?></h3> <ul class="comment-tabs group"> <li class="active"><a href="#commentlist-container"><i class="far fa-comments"></i><?php _e( 'Comments', 'hueman' ); ?><span><?php echo count($wp_query->comments_by_type['comment']); ?></span></a></li> <li><a href="#pinglist-container"><i class="fas fa-share"></i><?php _e( 'Pingbacks', 'hueman' ); ?><span><?php echo count($wp_query->comments_by_type['pings']); ?></span></a></li> </ul> <?php if ( ! empty( $comments_by_type['comment'] ) ) { ?> <div id="commentlist-container" class="comment-tab"> <ol class="commentlist"> <?php wp_list_comments( sprintf( "avatar_size=%s&type=comment", apply_filters('hu_avatar_size', 48 ) ) ); ?> </ol><!--/.commentlist--> <?php if ( get_comment_pages_count() > 1 && get_option('page_comments') ) : ?> <nav class="comments-nav group"> <div class="nav-previous"><?php previous_comments_link(); ?></div> <div class="nav-next"><?php next_comments_link(); ?></div> </nav><!--/.comments-nav--> <?php endif; ?> </div> <?php } ?> <?php if ( ! empty( $comments_by_type['pings'] ) ) { ?> <div id="pinglist-container" class="comment-tab"> <ol class="pinglist"> <?php // not calling wp_list_comments twice, as it breaks pagination $pings = $comments_by_type['pings']; foreach ($pings as $comment) { ?> <li class="ping"> <div class="ping-link"><?php comment_author_link($comment); ?></div> <div class="ping-meta"><?php comment_date( get_option( 'date_format' ), $comment ); ?></div> <div class="ping-content"><?php comment_text($comment); ?></div> </li> <?php } ?> </ol><!--/.pinglist--> </div> <?php } ?> <?php else: // if there are no comments yet ?> <?php if (comments_open()) : ?> <!-- comments open, no comments --> <?php else : ?> <!-- comments closed, no comments --> <?php endif; ?> <?php $u_time = get_the_time('U'); if (time()-$u_time>2*24*3600) : ?> <section id="comments" class="themeform"><h3 class="heading">1 komentarz</h3><ul class="comment-tabs group"><li class="active"><a href="#commentlist-container"><i class="far fa-comments"></i>Komentarz<span>1</span></a></li><li><a href="#pinglist-container"><i class="fas fa-share"></i>Pingbacki<span>0</span></a></li></ul><div id="commentlist-container" class="comment-tab"><ol class="commentlist"><li class="comment even thread-even depth-1 parent" id="comment-35"><div id="div-comment-35" class="comment-body"><div class="comment-author vcard"> <img alt='' src='https://secure.gravatar.com/avatar/20a9116a97015bf1b20ea9d70640a382?s=64&d=wavatar&r=pg' srcset='https://secure.gravatar.com/avatar/20a9116a97015bf1b20ea9d70640a382?s=128&d=wavatar&r=pg 2x' class='avatar avatar-64 photo' height='64' width='64' loading='lazy'/> <p><a href='https://doktorB.it/' rel='external ' class='url'>Andrzej P.Urbański</cite> <span class="says">pisze:</span></div><div class="comment-meta commentmetadata"> <a href="#comment-35"><?php echo date ('Y-m-d', time()-86400); ?>, o <?php echo rand(10, 22).":".rand(11,59); ?></a> </div><p><img src="https://doktorB.it/koment.jpg" width="100" align="right"> Ten wpis o tytule <i>"<?php echo get_the_title(); ?>"</i> z kategorii "<?php the_category(' <span>/</span> '); ?>" dotycz?cy: <?php echo get_the_tag_list('',', ',''); ?>, czeka na Twój komentarz. Na pewno masz na ten temat co? ciekawego do powiedzenia. Co s?dzisz o tym, co napisa?em?</p> </div> </li></ol></div> <?php endif; ?> <?php endif; ?> <?php if ( comments_open() ) { comment_form(); } ?> </section><!--/#comments-->
The last implements “ghost comments” from me trying to inspire readers to write real comment, when one write it my “ghost” disappear.
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersFor sure, child theme is not a problem, because destroyed screen was observed many days before I’ve been used child theme. And why child theme must be a problem. Did you create wordpress environment like in my site? i.e.:
As you can see on PC I have 4 columns layout. 4 column layout Two in the middle are for posts headers or for one open complete post. Left is for: tags cloud, last comments list, archive – month selection, post in calendar(selected month), and one picture link. Right is for: Categories list, Posts in months, and popular posts. Footer contains my logo, main menu and social menu. Header contains menu, customized header picture and textual social menu.
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersAs you can see on PC I have 4 columns layout.
4 column layout
Two in the middle are for posts headers or for one open complete post.
Left is for: tags cloud, last comments list, archive – month selection, post in calendar(selected month) and one picture link.
Right is for: Categories list, Posts in months, and popular posts.
Footer contains my logo, main menu and social menu.
Header contains menu, customized header picture and textual social menu.Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersThank you for the responce Nicolas.
CHILD theme I have create few days ago, but problem was from the beginning of “12”.
May I offer you creating user for you?
Which priviledges I must give you?Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersHere are screenshots:
HUEMAN.3.7.12 in Avast secure browser and probably some otherwrong screen HUEMAN.3.7.12
HUEMAN.3.7.11 correct screen HUEMAN.3.7.11Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersYes, my site works fine on every browser, because I’ve been forced installation of theme Hueman 3.7.11 blocking update to fatal Hueman 3.7.12. I don’t want to present my users invalid web page of my blog. Yes this faulty theme 3.7.12 shows my blog almost like on mobile devices, but it is evidently invalid view.
Forum: Themes and Templates
In reply to: [Hueman] Hueman 3.7.12 destroy columns in many web browsersLet’s compare what differs Hueman.3.7.11:
$full_width_widget_html = ob_get_contents(); ?> <?php if ( ! empty($full_width_widget_html) ) : ob_end_clean(); ?> <section class="container" id="footer-full-width-widget"> <div class="container-inner"> </div><!--/#credit--> <?php $credits_html = ob_get_contents(); if ($credits_html) ob_end_clean(); echo apply_filters( 'hu_credits_html', $credits_html );
with Hueman.3.7.12:
$full_width_widget_html = ob_get_clean(); ?> <?php if ( ! empty($full_width_widget_html) ) : ?> <section class="container" id="footer-full-width-widget"> <div class="container-inner"> </div><!--/#credit--> <?php $credits_html = ob_get_clean(); echo apply_filters( 'hu_credits_html', $credits_html );
In some other places function call “ob_get_contents()” is substituted by “ob_get_clean()” and its incompatibility is probably a problem for plenty of web browsers.
Yes, minor change is enogh,
I have copying from frontend.php version 2.1.0 lines 195-210 to version 2.1.2 lines 158-173 substituting them, and it removes problem i.e. script shows link and no pure HTML lines.I think I have solution to HTML bug in Cookie Notice & Compliance for GDPR / CCPA Version: 2.1.2
I have my blog running WORDPRESS 5.8 with your pluging for cookie: https://mydomain
After automatic update of – Cookie Notice & Compliance dla RODO / CCPA (aktualizacja z wersji 2.1.1 do 2.1.2) my pop-up window informing first-time user of my cookies becomes us follows:
U?ywamy plików cookie, aby zapewni? najlepsz? jako?? korzystania z naszej witryny. Je?li b?dziesz nadal korzysta? z tej witryny, za?o?ymy, ?e jeste? z niej zadowolony. <a href="https://mydomain/privacy-policy/" target="_self" rel="noopener">Polityka prywatno?ci</a>
Which means that script didn’t recognize HTML code<a href="https://mydomain/privacy-policy/" target="_self" rel="noopener">Polityka prywatno?ci</a>
and shows it as is e.i. making tag codes visible to the end user. In previous version there is a link instead.I’ve just found that the reason of this bug is in file: /wp-content/plugins/cookie-notice/includes/frontend.php which is shorter 15kB instead of 17kB in version 2.1.0
After substituting it with the one from version 2.1.0 of this plugin popup window is shown with correct link to privacy-policy.I don’t know if it doesn’t lead to another bug, but I cannot guarantied it. Maybe developer of this plugin will show another way to remove this bug.
- This reply was modified 3 years, 3 months ago by Andrzej P.Urbański.