serpher
Forum Replies Created
-
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 4 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://www.ads-software.com/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.css
andall.min.css
3. Change “Font Awesome 5 Free” and “Font Awesome 5 Brands” to “FontAwesome”Works like a charm! Thank you so much Vladimir! ??
Forum: Themes and Templates
In reply to: [OceanWP] JS error Webfont.jsThe culprit was the plugin called “Button”.
That issue was annoying due to Firewall thinking that the Arial error was a malicious probing code.Thank you Amit!
Forum: Themes and Templates
In reply to: [OceanWP] JS error Webfont.jsForum: Themes and Templates
In reply to: [OceanWP] Blog posts codeOk maybe I didn’t need to use custom template file for blog posts.
Settings > Reading > select your empty page for blog posts
Forum: Themes and Templates
In reply to: [OceanWP] Read More link is missing!Nvm, I’m dumb.
It was a style of displaying news. Weird thing is why in Minimal mode the Read more is not showing and in the Grid it does.