cinematze
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hamilton] Two issues after updating from 1.26 to 2.0.7Hi Anders,
thanks so much for your reply!
Unfortunately, your solution doesn’t seem to fix issue #2 but I’m not sure I explained it very well ??
I want to show some html formatted text in the “introduction box” on the front page while I want the standard title behavior on archive pages (for example “#hashtagname” as title on a hashtag archive page).
My new workaround is this: I replaced this part of the index.php
<?php if ( $archive_title ) : ?> <<?php echo $archive_title_elem; ?> class="title"><?php echo wp_kses_post( $archive_title ); ?></<?php echo $archive_title_elem; ?>> <?php endif; ?>
with this part
<?php if ( is_home() ) : ?> <h2 class="title">Cinematze – Home of the <a href="https://www.cinematze.de">Cinematze Cast</a>, <a href="https://www.mademyweek.de">Made My Week</a> & <a href="https://www.podofshame.de">Pod of Shame</a></h2> <?php endif; ?> <?php if ( is_archive() ) : ?> <<?php echo $archive_title_elem; ?> class="title"><?php echo wp_kses_post( $archive_title ); ?></<?php echo $archive_title_elem; ?>> <?php endif; ?>
That seems to have done the trick but if there’s a more elegant/efficient solution to achieve this, kindly let me know ??
Best,
Matze- This reply was modified 4 years, 1 month ago by cinematze.
Forum: Themes and Templates
In reply to: [Hamilton] Two issues after updating from 1.26 to 2.0.7The first issue kind of solved itself. Turns out it’s only a problem if there’s just one row of posts shown on each page. If there’s two or more, everything looks fine (although it wasn’t an issue at all with 1.26, hence my initial confusion).