Bladeren bron

Update text and link shown when there are no posts to show in 'Latest Posts' on front page

Jordan 4 jaren geleden
bovenliggende
commit
f8b8f6294e
1 gewijzigde bestanden met toevoegingen van 17 en 10 verwijderingen
  1. 17 10
      varia/template-parts/content/content-none.php

+ 17 - 10
varia/template-parts/content/content-none.php

@@ -18,22 +18,29 @@
 
 	<div class="page-content responsive-max-width">
 		<?php
-		if ( is_home() && current_user_can( 'publish_posts' ) ) :
+		if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
 
-			printf(
-				'<p>' . wp_kses(
-					/* translators: 1: link to WP admin new post page. */
-					__( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'varia' ),
+			<p>
+			<?php _e( 'Your site is set to show the the most recent posts on your homepage - but you don\'t have any Posts published.', 'seedlet' ); ?></p>
+
+			<?php printf(
+				'<p>' 
+				. wp_kses('<a href="%1$s" class="button">',
 					array(
 						'a' => array(
 							'href' => array(),
-						),
-					)
-				) . '</p>',
-				esc_url( admin_url( 'post-new.php' ) )
+							'class' => 'button'
+						)
+					)					
+				) ,
+				esc_url( admin_url( 'edit.php' ) )
 			);
+			/* translators: 1: link to WP admin new post page. 2: class for anchor */
+			 _e( 'Add or publish Posts', 'seedlet' ); ?>
 
-		elseif ( is_search() ) :
+			</a></p>
+			
+		<?php elseif ( is_search() ) :
 			?>
 
 			<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'varia' ); ?></p>