genera home and classes

This commit is contained in:
2025-08-29 07:32:17 +02:00
parent bf71d1cf48
commit de8eecbcbc
3 changed files with 20 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
<?php
/**
* Template part for displaying pages
*
@@ -13,37 +14,35 @@
<header class="entry-header">
<?php
if ( ! is_front_page() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( '<h2 class="entry-title">', '</h2>' );
if (! is_front_page()) {
the_title('<h1 class="entry-title">', '</h1>');
}
?>
</header><!-- .entry-header -->
<?php studio_up_post_thumbnail(); ?>
<div <?php studio_up_content_class( 'entry-content' ); ?>>
<div <?php studio_up_content_class('entry-content'); ?>>
<?php
the_content();
wp_link_pages(
array(
'before' => '<div>' . __( 'Pages:', 'studio-up' ),
'before' => '<div>' . __('Pages:', 'studio-up'),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
<?php if ( get_edit_post_link() ) : ?>
<?php if (get_edit_post_link()) : ?>
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
wp_kses(
/* translators: %s: Name of current post. Only visible to screen readers. */
__( 'Edit <span class="sr-only">%s</span>', 'studio-up' ),
__('Edit <span class="sr-only">%s</span>', 'studio-up'),
array(
'span' => array(
'class' => array(),