• Hello,

    I have just started using Travelify theme and in general I think I love it, especially the beautiful slider. I have read a lot of posts that talk about similar things.
    My site is catrinasgarden.com

    I have a few problems with it. I am using both pages and post with a page for my home. On the homepage I would like only one photo, just the slider not the header image on top of it.

    On the other pages and posts I would like pictures as well. Right now I have a picture in the header photo which shows on every page and post. This is acceptable to me but I don’t want it with the slider. I would also like the featured image to show on each page. Right now it does not show on pages or posts.

    I have started a child theme as suggested by the helpful people on the theme designers website. with this child theme I was able to add featured images to posts (child is not active right now because I don’t have it customized) but the featured image to posts works.

    I would also like the featured image to show on pages. A regular picture under the title would be fine but other possibilities that would make me happy: Add the slider to my other pages also. Then I could remove the header image. Or, use featured image for the header image of that page. I’m thinking that if I had the slider on other pages I could just put one image in it and not have it slide.

    Next, I am having some difficulty with the thumbnails. They are cut off in an unusual way that makes my frames look weird. If I have to remove the frames I could but it would be a lot of work to replace all of the pictures. My guess is that it has something to do with the size of my pictures and/or the sizes that I have set for thumbnails/med/large pictures. Any suggestions to improve this would be appreciated.

    One little thing: I would like to remove the authors name from the posts.

    Last, and I did find a partial answer in another post. I would like to have both my logo and the title/tagline up on the top instead of one or the other. Jessen a posted this code to add to the functions.php of the child theme

    <?php
    function my_logo() {
    echo ‘<img id=”mylogo” src=”<your link to a logo>” alt=”Nee Skin Care” />’;
    }
    add_action(‘travelify_header’,’my_logo’);

    and this code would be added to style.css

    #mylogo {
    float: right;
    }

    I want mine on the left though so I would say left instead of right correct?
    The only problem is I already have the functions.php started, with all the code that was given to me to put the pictures back on the posts pages. I don’t know where amongst the existing code to place this new code snippet.
    Thanks in advance for any help you can offer me.
    I will post the existing code in the child theme functions.php file below so you can tell me where to put the new stuff.
    Thanks again,
    Catrina

    <?php

    // Queue parent style followed by child/customized style
    add_action( ‘wp_enqueue_scripts’, ‘func_enqueue_child_styles’, 99);

    function func_enqueue_child_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_dequeue_style(‘travelify-style’);
    wp_enqueue_style( ‘travelify-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }

    /**
    * Function to show the single post content.
    */
    function travelify_theloop_for_single() {
    global $post;

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

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

    <?php the_post_thumbnail( ‘featured’, array( ‘class’ => ‘single-featured’ )); ?>

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

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

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

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

    <div class=”entry-meta-bar clearfix”>
    <div class=”entry-meta”>
    <?php travelify_posted_on(); ?>
    <?php if( has_category() ) { ?>
    <span class=”category”><?php the_category(‘, ‘); ?></span>
    <?php } ?>
    <?php if ( comments_open() ) { ?>
    <span class=”comments”><?php comments_popup_link( __( ‘No Comments’, ‘travelify’ ), __( ‘1 Comment’, ‘travelify’ ), __( ‘% Comments’, ‘travelify’ ), ”, __( ‘Comments Off’, ‘travelify’ ) ); ?></span>
    <?php } ?>
    </div><!– .entry-meta –>
    </div>

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

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

    <div class=”entry-content clearfix”>
    <?php the_content();
    if( is_single() ) {
    $tag_list = get_the_tag_list( ”, __( ‘, ‘, ‘travelify’ ) );

    if( !empty( $tag_list ) ) {
    ?>
    <div class=”tags”>
    <?php echo $tag_list; ?>
    </div>
    <?php
    }
    }

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

    <?php

    do_action( ‘travelify_after_post_content’ );

    do_action( ‘travelify_before_comments_template’ );

    comments_template();

    do_action ( ‘travelify_after_comments_template’ );

    ?>

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

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

  • The topic ‘Travelify theme questions’ is closed to new replies.