Single post nav order fix

This commit is contained in:
AlxMedia 2021-09-21 11:05:23 +02:00
parent da707cf8a6
commit fd974a64d1
5 changed files with 13 additions and 11 deletions

View file

@ -6,7 +6,7 @@
<div class="type-portfolio-thumb">
<a href="<?php the_permalink(); ?>">
<?php if ( has_post_thumbnail() ) : ?>
<?php the_post_thumbnail('gridframe-medium'); ?>
<?php the_post_thumbnail('gridframe-medium-h'); ?>
<?php else: ?>
<img src="<?php echo esc_url( get_template_directory_uri() ); ?>/img/thumb-medium.png" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?>

View file

@ -74,7 +74,8 @@ if ( ! function_exists( 'gridframe_setup' ) ) {
// Thumbnail sizes
add_image_size( 'gridframe-small', 200, 200, true );
add_image_size( 'gridframe-medium', 400 );
add_image_size( 'gridframe-medium', 400, 400, true );
add_image_size( 'gridframe-medium-h', 400 );
add_image_size( 'gridframe-large', 940 );
// Thumbnail sizes custom widgets

View file

@ -2,7 +2,7 @@
msgid ""
msgstr ""
"Project-Id-Version: Gridframe\n"
"POT-Creation-Date: 2021-09-20 20:39+0200\n"
"POT-Creation-Date: 2021-09-21 11:04+0200\n"
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -123,19 +123,19 @@ msgstr ""
msgid "Footer 4"
msgstr ""
#: functions.php:686
#: functions.php:685
msgid "Alx Extensions"
msgstr ""
#: functions.php:690
#: functions.php:689
msgid "Meta Box"
msgstr ""
#: functions.php:694
#: functions.php:693
msgid "Regenerate Thumbnails"
msgstr ""
#: functions.php:698
#: functions.php:697
msgid "WP-PageNavi"
msgstr ""

View file

@ -29,6 +29,8 @@
<div class="clear"></div>
<?php if ( get_theme_mod( 'post-nav', 'content' ) == 'content' ) { get_template_part('inc/post-nav'); } ?>
<?php if ( ( get_theme_mod( 'author-bio', 'on' ) == 'on' ) && get_the_author_meta( 'description' ) ): ?>
<div class="author-bio">
<div class="bio-avatar"><?php echo get_avatar(get_the_author_meta('user_email'),'128'); ?></div>
@ -41,8 +43,6 @@
<?php do_action( 'alx_ext_sharrre' ); ?>
<?php if ( get_theme_mod( 'related-posts', 'categories' ) != 'disable' ) { get_template_part('inc/related-posts'); } ?>
<?php if ( get_theme_mod( 'post-nav', 'content' ) == 'content' ) { get_template_part('inc/post-nav'); } ?>
<?php if ( comments_open() || get_comments_number() ) : comments_template( '/comments.php', true ); endif; ?>

View file

@ -859,6 +859,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
.type-portfolio-comments:hover { color: #333; }
.type-portfolio-comments:hover span { color: #fff; }
.type-portfolio:hover .type-portfolio-comments { opacity: 1; }
.type-portfolio:hover .thumb-icon { background: #fff; color: #333; }
.type-portfolio-content { background: #fff; padding-bottom: 16px; }
.type-portfolio-title { margin-bottom: 4px; }
@ -1059,10 +1060,10 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
/* ------------------------------------ */
.post-nav { background: #f5f5f5; border-radius: 10px; margin-bottom: 40px; }
.post-nav li { width: 50%; display: inline; float: left; }
.post-nav li a { position: relative; display: block; padding-top: 10px; padding-bottom: 10px; }
.post-nav li a { position: relative; display: block; padding-top: 20px; padding-bottom: 20px; }
.post-nav li i { color: #ccc; font-size: 18px; position: absolute; top: 50%; margin-top: -10px; }
.post-nav li a strong { display: block; font-size: 12px; color: #aaa; letter-spacing: 0.5px; font-weight: normal; text-transform: uppercase; }
.post-nav li a span { font-size: 15px; font-weight: 600; color: #333; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.post-nav li a span { font-size: 18px; font-weight: 600; color: #333; display: block; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; }
.post-nav li a:hover span { color: #000; }
.post-nav li a:hover i { color: #000; }
.post-nav li.previous { float: left; }