badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Petrichor

Forum Replies Created

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • in reply to: I need a blog category with same "home page blog" layout #9143
    Petrichor
    Participant

    If anyone writes the necessary CSS to make this happen, please post it here for everyone else wanting to do this. Thanks!

    Petrichor
    Participant

    Thanks!
    I ended up switching the order of functions in my child’s functions.php, and now it all works without the error.
    Here’s the code I use in child’s functions.php to put page titles in the breadcrumbs bar and to create a services_child widget that allows the titles of the services to be clickable:

    <?php
    function attitude_header_title() {
    	if( is_archive() ) {
    		$attitude_header_title = single_cat_title( '', FALSE );
    	}
    	elseif( is_404() ) {
    		$attitude_header_title = __( 'Page NOT Found', 'attitude' );
    	}
    	elseif( is_search() ) {
    		$attitude_header_title = __( 'Search Results', 'attitude' );
    	}
    	elseif( is_page_template()  ) {
    		$attitude_header_title = get_the_title();
    	}
    
    	elseif( is_page()  ) {
    		$attitude_header_title = get_the_title();
    	}
    
    	else {
    		$attitude_header_title = '';
    	}
    
    	return $attitude_header_title;
    
    }
    function attitude_theloop_for_page() {
    	global $post;
    
    	if( have_posts() ) {
    		while( have_posts() ) {
    			the_post();
    
    			do_action( 'attitude_before_post' );
    ?>
    	<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    		<article>
    
    			<?php do_action( 'attitude_before_post_header' ); ?>
    
      			<?php do_action( 'attitude_after_post_header' ); ?>
    
      			<?php do_action( 'attitude_before_post_content' ); ?>
    
      			<div class="entry-content clearfix">
        			<?php the_content(); ?>
        			<?php
        				wp_link_pages( array( 
    						'before'            => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'attitude' ),
    						'after'             => '</div>',
    						'link_before'       => '<span>',
    						'link_after'        => '</span>',
    						'pagelink'          => '%',
    						'echo'              => 1 
                   ) );
        			?>
      			</div>
    
      			<?php 
    
      			do_action( 'attitude_after_post_content' );
    
      			do_action( 'attitude_before_comments_template' ); 
    
             comments_template(); 
    
             do_action ( 'attitude_after_comments_template' );
    
             ?>
    
    		</article>
    	</section>
    <?php
    			do_action( 'attitude_after_post' );
    
    		}
    	}
    	else {
    		?>
    		<h1 class="entry-title"><?php _e( 'No Posts Found.', 'attitude' ); ?></h1>
          <?php
       }
    }
    ?>
    
    in reply to: Put page title in the breadcrumbs bar #4529
    Petrichor
    Participant

    Is there a way to make a blog post’s title in the breadcrumbs bar?

    in reply to: Put page title in the breadcrumbs bar #4341
    Petrichor
    Participant

    It all works! I must have had a typo in my child style.css
    Thank you.

    in reply to: Put page title in the breadcrumbs bar #4314
    Petrichor
    Participant

    Ugh! Thanks. I had set up the child theme, but not activated it as the theme. It works now… BUT I’ve lost the attitude pro functionality the the theme settings… Could you direct me to info for how I can set-up the attitude pro child theme without losing functions, like setting the colour of the slogan bar?

    What I have done:

    • create folder wp-content/themes/attitude-pro-child
    • create file wp-content/themes/attitude-pro-child/style.css with content @import url(“../attitude-pro/style.css”);
    • create file wp-content/themes/attitude-pro-child/functions.php with the code you provided

    Thanks for your help (and patience)!

    in reply to: Put page title in the breadcrumbs bar #4288
    Petrichor
    Participant

    I am not noticing any change. The title remains beneath the grey breadcrumbs bar, rather than in it, when I use the Default Template for a page.

    http://injestfestival.com/shows/

    Should the code be modified because I’m using the Attitude Pro template?

    in reply to: Put page title in the breadcrumbs bar #4260
    Petrichor
    Participant

    What I don’t know is if the recommended edit on content-extensions.php should be the full file, minus those lines of code, placed in wp-content/themes/attitude-pro-child/library/structure/content-extensions.php, or if a new content-extensions.php file should be placed elsewhere.

    Also, I don’t know if I should be adding the code from post #3839 to a blank functions.php file in the child folder, or if it should include additional code.

    in reply to: Put page title in the breadcrumbs bar #4250
    Petrichor
    Participant

    I created wp-content/themes/attitude-pro-child/library/structure/content-extensions.php and removed the following lines:

    <header class=”entry-header”>
    <h2 class=”entry-title”>
    ” title=”<?php the_title_attribute();?>”><?php the_title(); ?>
    </h2><!– .entry-title –>
    </header>

    I created wp-content/themes/attitude-pro-child/functions.php and put the following script in it:

    function attitude_theloop_for_page() {
    global $post;

    if( have_posts() ) {
    while( have_posts() ) {
    the_post();

    do_action( ‘attitude_before_post’ );
    ?>
    <section id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <article>

    <?php do_action( ‘attitude_before_post_header’ ); ?>

    <header class=”entry-header”>
    <h2 class=”entry-title”>
    <?php the_title(); ?>
    </h2><!– .entry-title –>
    </header>

    <?php do_action( ‘attitude_after_post_header’ ); ?>

    <?php do_action( ‘attitude_before_post_content’ ); ?>

    <div class=”entry-content clearfix”>
    <?php the_content(); ?>
    <?php
    wp_link_pages( array(
    ‘before’ => ‘<div style=”clear: both;”></div><div class=”pagination clearfix”>’.__( ‘Pages:’, ‘attitude’ ),
    ‘after’ => ‘</div>’,
    ‘link_before’ => ‘<span>’,
    ‘link_after’ => ‘</span>’,
    ‘pagelink’ => ‘%’,
    ‘echo’ => 1
    ) );
    ?>
    </div>

    <?php

    do_action( ‘attitude_after_post_content’ );

    do_action( ‘attitude_before_comments_template’ );

    comments_template();

    do_action ( ‘attitude_after_comments_template’ );

    ?>

    </article>
    </section>
    <?php
    do_action( ‘attitude_after_post’ );

    }
    }
    else {
    ?>
    <h1 class=”entry-title”><?php _e( ‘No Posts Found.’, ‘attitude’ ); ?></h1>
    <?php
    }
    }
    endif;

    in reply to: Put page title in the breadcrumbs bar #4211
    Petrichor
    Participant

    I’m using Attitude Pro. I added the above code to attitude-pro-child/../functions.php but the location of the page title/heading doesn’t change. Should I be adding anything additional, such as <?php ?> around the code snippet?

    http://injestfestival.com/tickets/

Viewing 9 posts - 1 through 9 (of 9 total)