jen-me
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Hueman] read more tag not displayedNo, unfortunately it doesn’t work :/
I have also a content.php
<article id="post-<?php the_ID(); ?>" <?php post_class( array('group', 'grid-item') ); ?>> <div class="post-inner post-hover"> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php hu_the_post_thumbnail('thumb-medium'); ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?> <?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?> </a> <?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?> <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a> <?php endif; ?> </div><!--/.post-thumbnail--> <div class="post-meta group"> <p class="post-category"><?php the_category(' / '); ?></p> <?php get_template_part('parts/post-list-author-date'); ?> </div><!--/.post-meta--> <h2 class="post-title entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2><!--/.post-title--> <?php if (hu_get_option('excerpt-length') != '0'): ?> <div class="entry excerpt entry-summary"> <?php the_excerpt(); ?> </div><!--/.entry--> <?php endif; ?> </div><!--/.post-inner--> </article><!--/.post-->
Maybe do I have to change something here? Putting
<br><a href="<?php the_permalink(); ?>">read more</a>
below<?php the_excerpt(); ?>
in this file had no effect either.Forum: Themes and Templates
In reply to: [Hueman] read more tag not displayedAh okay, thank you. I think I missunderstood because of my bad english, sorry ??
Now I copied
<br><a href="<?php the_permalink(); ?>">read more</a>
below<?php the_excerpt(); ?>
in the content-standard.php (in the content-featured.php is no code<?php the_excerpt(); ?>
)Unfortunately it still has no effect ?? Have I still done something wrong? Or do you maybe have got another idea?
- This reply was modified 7 years, 6 months ago by jen-me.
Forum: Themes and Templates
In reply to: [Hueman] Post Featured Image not showing in post viewHallo,
many months ago I had the same problem and I have made a note for myself that I have to add<br/> <?php if (has_post_thumbnail()) {the_post_thumbnail('full');} ?>
into the single.php
Now I updated the theme and I wanted to do the same again (at that time I didn’t knew what child themes are) but it doesn’t work. Do you know where I should put the code?
- This reply was modified 7 years, 6 months ago by jen-me.
Forum: Themes and Templates
In reply to: [Hueman] read more tag not displayedHallo, thank you for your help but it doesn’t work ??
The code of the content-standard.php ist now:
<article id="post-<?php the_ID(); ?>" <?php post_class( array( 'group', 'post-standard' , 'grid-item') ); ?>> <div class="post-inner post-hover"> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php hu_the_post_thumbnail('thumb-standard'); ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?> <?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?> </a> <?php if ( comments_open() && ( hu_is_checked( 'comment-count' ) ) ): ?> <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a> <?php endif; ?> </div><!--/.post-thumbnail--> <div class="post-content"> <div class="post-meta group"> <p class="post-category"><?php the_category(' / '); ?></p> <?php get_template_part('parts/post-list-author-date'); ?> </div><!--/.post-meta--> <h2 class="post-title entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2><!--/.post-title--> <?php if (hu_get_option('excerpt-length') != '0'): ?> <div class="entry excerpt entry-summary"> <?php the_excerpt(); ?> </div><!--/.entry--> <?php endif; ?> </div><!--/.post-content--> </div><!--/.post-inner--> </article><!--/.post--> <?php the_excerpt(); ?> <br><a href="<?php the_permalink(); ?>">read more</a>
The code of the content-featured.php ist now:
<article id="post-<?php the_ID(); ?>" <?php post_class('group'); ?>> <div class="post-inner post-hover"> <div class="post-thumbnail"> <a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"> <?php hu_the_post_thumbnail('thumb-large'); // only difference to content.php ?> <?php if ( has_post_format('video') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-play"></i></span>'; ?> <?php if ( has_post_format('audio') && !is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-volume-up"></i></span>'; ?> <?php if ( is_sticky() ) echo'<span class="thumb-icon"><i class="fa fa-star"></i></span>'; ?> </a> <?php if ( comments_open() && ( hu_is_checked('comment-count' ) ) ): ?> <a class="post-comments" href="<?php comments_link(); ?>"><span><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></span></a> <?php endif; ?> </div><!--/.post-thumbnail--> <div class="post-meta group"> <p class="post-category"><?php the_category(' / '); ?></p> <?php get_template_part('parts/post-list-author-date'); ?> </div><!--/.post-meta--> <h2 class="post-title entry-title"> <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a> </h2><!--/.post-title--> <?php if ( ! hu_is_checked('featured-posts-full-content') ) : ?> <div class="entry excerpt entry-summary"> <?php if ( hu_get_option('excerpt-length') != '0' ) { the_excerpt(); } ?> </div><!--/.entry--> <?php else : ?> <div class="entry excerpt"> <?php the_content() ?> </div><!--/.entry--> <?php endif; ?> </div><!--/.post-inner--> </article><!--/.post--> <?php the_excerpt(); ?> <br><a href="<?php the_permalink(); ?>">read more</a>
Can you please tell me if it is maybe at the wrong position?
Forum: Themes and Templates
In reply to: [Hueman] Read More tag not appearingOkay thank you. But I noticed that my theme is very old. I have installed version 1.4.3 of the theme hueman… I am afraid of updating it because my changes will disappear. At the moment I try to understand what a child theme is. (Sorry I am a poor Newbie.) I will start a new topic later.
Forum: Themes and Templates
In reply to: [Hueman] Read More tag not appearingHallo,
I have the same problem with the “Read more” tag. It works but it does not appear.I tried the solution bdbrown explained. I copied
/* add read more link to post excerpt */ function my_excerpt_more_link( $excerpt ){ $post = get_post(); $excerpt .= '<a>ID) . '">Read more -></a>.'; return $excerpt; } add_filter( 'the_excerpt', 'my_excerpt_more_link', 21 );
[Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]
in the functions.php but it had no effect. Can you please explain where exactly I have to put this code?
Thank you!
- This reply was modified 7 years, 6 months ago by bdbrown.
Forum: Plugins
In reply to: [Contact Form 7] This field has syntax errors.I had the same problem. This field requires an email address. I added an email address after [your-name] like this:
[your-name] <[email protected]>
Then it worked.
Where do I find the “Display Options”?