serpher
Forum Replies Created
-
The thing is that only Chrome 90 has this problem. Firefox, Vivaldi Chrominium v89 don’t.
The code that’s messing it up:
function defer_parsing_of_js( $url ) { if ( is_user_logged_in() ) return $url; //don't break WP Admin if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return str_replace( ' src', ' defer src', $url ); } add_filter( 'script_loader_tag', 'defer_parsing_of_js', 10 );Used for deferring JS on load.
OK, apparently there’s something wrong with the child theme of OceanWP. No clue what. And why it does affect only Chrome 90.
What the code looks like. Why the hell div turned into table???
- This reply was modified 4 years, 11 months ago by serpher.
Tried it, doesn’t work. Can’t tell what interferes with TablePress on Chrome 90.
@tobiasbg Have you tried https://www.spzozmm.pl/ ?
@tobiasbg I noticed it on http://www.spzozmm.pl
The solution I came up with is to add
<div <?php post_class() ?> >in default-loop.php and<div class="su-posts su-posts-default-loop"> <?php if ( $posts->have_posts() ) : ?> <?php while ( $posts->have_posts() ) : $posts->the_post(); ?> <div id="su-post-<?php the_ID(); ?>" class="su-post"> <div <?php post_class() ?> > <?php if ( has_post_thumbnail( get_the_ID() ) ) : ?> <a class="su-post-thumbnail" href="<?php the_permalink(); ?>"><?php the_post_thumbnail(); ?></a> <?php endif; ?> <h2 class="su-post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <div class="su-post-meta"> <?php _e( 'Posted', 'shortcodes-ultimate' ); ?>: <?php the_time( get_option( 'date_format' ) ); ?> </div> <div class="su-post-excerpt"> <?php the_excerpt(); ?> </div> <?php if ( have_comments() || comments_open() ) : ?> <a href="<?php comments_link(); ?>" class="su-post-comments-link"><?php comments_number( __( '0 comments', 'shortcodes-ultimate' ), __( '1 comment', 'shortcodes-ultimate' ), '% comments' ); ?></a> <?php endif; ?> </div> </div> <?php endwhile; ?> <?php else : ?> <h4><?php _e( 'Posts not found', 'shortcodes-ultimate' ); ?></h4> <?php endif; ?> </div>and in functions.php
function my_sticky( $classes ) { global $post; if ( is_sticky( $post->ID ) ) { $classes[] = 'sticky'; } return $classes; } add_filter( 'post_class', 'my_sticky' );Don’t know if it’s correct but it works.
- This reply was modified 5 years, 5 months ago by serpher.
Forum: Fixing WordPress
In reply to: SVG inline code in Pages – Good or Bad idea?@otto42
I’m kinda confused by your answer. I have to putor <object> code in page template pointing to that svg file?
Nevermind, answer is here:
https://wordpress.org/support/topic/absolude-path-after-upgrading-to-3-1-17/page/2/
Forum: Themes and Templates
In reply to: [OceanWP] Menu IconsUnfortunately 1.5.19 didn’t fix menu icons. Still blank modal window.
Forum: Themes and Templates
In reply to: [OceanWP] Menu IconsI was about to ask about menu icons as well. I also updated to WP 5.3 yesterday and modal window is blank.
Forum: Themes and Templates
In reply to: [OceanWP] Navigation arrows and close button show as square..@ftpwp Thank you!
Forum: Themes and Templates
In reply to: [OceanWP] Navigation arrows and close button show as square..Shame that you can’t find 1.7.1 version of OceanWP. My temporary fix was to change it to FontAwesome.
Forum: Themes and Templates
In reply to: [OceanWP] Navigation arrows and close button show as square..clemzoo23
Edit .css files in Notepad, find “Font Awesome 5 Free” and “Font Awesome 5 Brands” and rename them to “FontAwesome”.
It will fix the problem.Forum: Themes and Templates
In reply to: [OceanWP] Navigation arrows and close button show as square..I have the same problem. Tried to find version 1.7.1 somewhere but no luck.
Either way, quick fix is to:
1.themes\oceanwp\assets\fonts\fontawesome\css
2. Editall.cssandall.min.css
3. Change “Font Awesome 5 Free” and “Font Awesome 5 Brands” to “FontAwesome”Works like a charm! Thank you so much Vladimir! 🙂