Viewing 15 replies - 16 through 30 (of 37 total)
  • Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    I do not understand what you are saying. See this comment. That’s where you need to add the code that I wrote in this comment. Thanks.

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    Oh Philip,

    yes, I’m stupid! That was my mistake, I found it. Please look again at the side, now the chaos is perfect!?!?!

    Michael

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Hi Michael,

    Please use the exact code here. It looks like you are still using old code with paragraph tags.

    Please post your code here to confirm.

    Thanks!

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    Here the code of page-title.php:

    <div class="page-title pad group">
    
    	<?php if ( is_home() ) : ?>
    		<h2><?php echo alx_blog_title(); ?></h2>
    
    	<?php elseif ( is_single() ): ?>
    		<ul class="meta-single group">
    			<li class="category"><?php the_category(' <span>/</span> '); ?></li>
    			<?php if ( comments_open() && ( ot_get_option( 'comment-count' ) != 'off' ) ): ?>
    			<li class="comments"><a href="<?php comments_link(); ?>"><i class="fa fa-comments-o"></i><?php comments_number( '0', '1', '%' ); ?></a></li>
    			<?php endif; ?>
    		</ul>
    
    		<?php elseif ( is_page() ): ?> <h2> <?php echo alx_page_title(); ?> <?php if ( function_exists( 'the_subtitle' ) ) { the_subtitle(); } ?> </h2>
    
    	<?php elseif ( is_search() ): ?>
    		<h1>
    			<?php if ( have_posts() ): ?><i class="fa fa-search"></i><?php endif; ?>
    			<?php if ( !have_posts() ): ?><i class="fa fa-exclamation-circle"></i><?php endif; ?>
    			<?php $search_count = 0; $search = new WP_Query("s=$s & showposts=-1"); if($search->have_posts()) : while($search->have_posts()) : $search->the_post(); $search_count++; endwhile; endif; echo $search_count;?> <?php _e('Search results','hueman'); ?></h1>
    
    	<?php elseif ( is_404() ): ?>
    		<h1><i class="fa fa-exclamation-circle"></i><?php _e('Error 404.','hueman'); ?> <span><?php _e('Page not found!','hueman'); ?></span></h1>
    
    	<?php elseif ( is_author() ): ?>
    		<?php $author = get_userdata( get_query_var('author') );?>
    		<h1><i class="fa fa-user"></i><?php _e('Author:','hueman'); ?> <span><?php echo $author->display_name;?></span></h1>
    
    	<?php elseif ( is_category() ): ?>
    		<h1><i class="fa fa-folder-open"></i><?php _e('Category:','hueman'); ?> <span><?php echo single_cat_title('', false); ?></span></h1>
    
    	<?php elseif ( is_tag() ): ?>
    		<h1><i class="fa fa-tags"></i><?php _e('Tagged:','hueman'); ?> <span><?php echo single_tag_title('', false); ?></span></h1>
    
    	<?php elseif ( is_day() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Daily Archive:','hueman'); ?> <span><?php echo get_the_time('F j, Y'); ?></span></h1>
    
    	<?php elseif ( is_month() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Monthly Archive:','hueman'); ?> <span><?php echo get_the_time('F Y'); ?></span></h1>
    
    	<?php elseif ( is_year() ): ?>
    		<h1><i class="fa fa-calendar"></i><?php _e('Yearly Archive:','hueman'); ?> <span><?php echo get_the_time('Y'); ?></span></h1>
    
    	<?php else: ?>
    		<h2><?php the_title(); ?></h2>
    
    	<?php endif; ?>
    
    </div><!--/.page-title-->
    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    And here the code of page.php:

    <?php get_header(); ?>
    
    <section class="content">
    
    <?php get_template_part( 'inc/page-title' ); if ( function_exists( 'the_subtitle' ) ) { the_subtitle( '<p class="entry-subtitle">', '</p>' ); } ?>
    
    <div class="pad group">
    
    <?php while ( have_posts() ): the_post(); ?>
    
    <article <?php post_class( 'group' ); ?>>
    
    <?php get_template_part( 'inc/page-image' ); ?> <div class="entry themeform">
    
    <?php the_content(); ?>
    <div class="clear"></div>
    </div><!--/.entry-->
    </article>
    
    <?php if ( 'on' == ot_get_option( 'page-comments' ) ) { comments_template( '/comments.php',true ); } ?>
    
    <?php endwhile; ?> </div><!--/.pad-->
    
    </section><!--/.content-->
    
    <?php get_sidebar(); ?>
    
    <?php get_footer(); ?>
    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    This looks okay to me:

    <?php elseif ( is_page() ): ?> <h2> <?php echo alx_page_title(); ?> <?php if ( function_exists( 'the_subtitle' ) ) { the_subtitle(); } ?> </h2>

    But please clear your cache or disable it until this is Resolved. I cannot see your updated code on the site.

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    This is wrong:

    <?php get_template_part( 'inc/page-title' ); if ( function_exists( 'the_subtitle' ) ) { the_subtitle( '<p class="entry-subtitle">', '</p>' ); } ?>

    Remove that Subtitle code.

    You only need it in one place.

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    Well, I now have the code away from the page.php. Now the title is displayed along with the subtitel without upheaval and formatting in a row. I have emptied the cache and you would have to see it too. The title is “Impressum” and the rest is Subtitle.

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Okay. That looks much better.

    The only other suggestion I have is to use this code:

    the_subtitle( '<span class="entry-subtitle">', '</span>' );

    Let me know how that goes.

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    No it does not work on pages (#entry-subtitle)! For post I added the following code in my css file that goes also:

    span.entry-subtitle {
    color: #3b8dbd;
    }

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    So what’s the problem now? Please recap the issues remaining. Thanks.

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    Okay! The error is now really only that the Subtitle standing together in a line with the title. It should look like the posts. Above and below subtitel title in a smaller font and a different color. Did you really tried very hard and for that I thank you from the heart. But if it does not go on I can Subtitles in pages do without. Then please tell me how I can remove the entry field for subtitles.

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    Are you using this code EXACTLY as I have written it? I do not see this on your site.

    Thread Starter Michael Erich Pilarczyk

    (@blog_micky)

    Okay Philip,

    I have once again reworked. Now it looks a little better. Unfortunately, not as posts here: https://magazin.bloggernotizen.de/blognews/underconstruction_1.html … The blue line is the subtitle. Title and subtitel of pages to look consistent of posts! I have now unfortunately only once to take a break because I have to go away. But I’ll get back to you later. Of course, only if I may, and you want to employ you with the problem-yet.

    Thanks Michael Erich Pilarczyk

    Plugin Author Philip Arthur Moore

    (@philiparthurmoore)

    This is still wrong:

    <p class="entry-subtitle">Auch Pages erhalten einen SubTitle.</p>

    Please post the code you’re currently using. The above code is incorrect.

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘Do not display subtitles on pages!’ is closed to new replies.