Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • It’s a great theme.

    I’m sorry the png file is called screenshot.png.

    This is how to do it by child theme. This is the best way to go in most cases.

    Step 1: make a directory in wp-content/themes called yume-child.

    Step 2: create a file and name it style.css in the directory you just created.

    Step 3: Paste this code in that file:

    /*
        Theme Name: Yume Child
        Template: yume
    */
    
    @import url("../yume/style.css");
    
     /*start the child theme customization*/

    Step 4: Make sure to save the file.

    Step 5: Create a file called archive.php and paste this code in it:

    <?php
    /**
     * The template for displaying archive
     *
     *
     * @package Yume
     */
     get_header(); ?>
    		<div id="content">
    			<div class="center">
    				<div class="columnwrapp <?php do_action( 'yume_display_ps' ); ?>">
    					<div class="pagecontent">
    						<div class="fullwidth">
    							<?php get_template_part('content-archive'); ?>
    						</div>
    					</div>
                        <?php get_sidebar(); ?>
    				</div>
    			</div>
    		</div>
    <?php get_footer(); ?>

    Step 6: Create a file called content-archive.php and paste this code in it:

    <?php
    /**
     * The template for displaying archives.
     *  This file did not come with the theme
     * @package Yume
     */
    ?>
    <?php
    if (have_posts()) :
        while ( have_posts()): the_post();
            ?>
            <div  id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <div class="topbarpost">
                    <div class="fleft"><i><?php _e( 'in', 'yume' ); ?></i> <?php the_category(', '); ?></div>
                    <div class="fright"><span class="postdate"><?php the_time( get_option( 'date_format' ) ); ?></span></div>
                </div>
                <div class="postcontent">
                    <?php if( has_post_thumbnail() ) { ?>
                        <div class="thumb thumbleft">
                            <a href="<?php the_permalink() ?>"><?php echo get_the_post_thumbnail( $post->ID, 'thumbnail'); ?></a>
                        </div>
                    <?php } ?>
                    <h2><a href="<?php the_permalink() ?>"><?php if(get_the_title($post->ID)) { the_title(); } else { the_time('j M Y');} ?></a></h2>
                    <p><?php the_excerpt(); ?></p>
                </div>
                <div class="postfooter">
                    <div class="fleft">
                        <span class="commentcount"><?php comments_popup_link('<span class="icon comments"></span> No Comments', '<span class="icon comments"></span> 1 Comment', '<span class="icon comments"></span> % Comments', 'comment-link'); ?></span>
                    </div>
                    <div class="fright"><a class="readmore" href="<?php the_permalink() ?>"><?php _e( 'Read More &#187', 'yume' ); ?></a></div>
                </div>
            </div>
        <?php endwhile; ?>
        <p class="pagination">
            <span class="prev"><?php next_posts_link(__('Previous Posts', 'yume')) ?></span>
            <span class="next"><?php previous_posts_link(__('Next posts', 'yume')) ?></span>
        </p>
    <?php else : ?>
        <h2 class="center"><?php _e( 'Not found', 'yume' ); ?></h2>
        <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'yume' ); ?></p>
    <?php endif; ?>

    Step 7: After you have made and saved these files go to your site’s Dashboard. Under Appearence->Themes you will see the new child theme it will be called Yume Child. Activate it and your on your way.

    If you would like you can copy the file called snapshot.png to your yume-child directory to see the site snapshot in the admin area.

    Sorry I guess it is in html5 I just didn’t see any html5 specific code.

    I do agree with you in most cases, with this theme, when I seen that it was not in html5 and has no structured data markup,(to speak of that is), I didn’t bother because most of the time when the author of the theme updates it it will be changed to html5 and the code I replied with will not validate. It stands to reason that the author will also fix this problem when it updates, so in this case I say let it update and if it is not fixed we will then explore a child theme option.

    I do want you to know, however that I totally agree with you in most cases.

    Make sure that you name the file:

    content-archive.php

    OK This is how the archives can be fixed.
    First, THIS IS VERY IMPORTANT back up your theme files.
    Second, create a file in the wp-content/themes/yume/ directory and name it content-archive.php. Then paste this code into it:

    <?php
    /**
     * The template for displaying archives.
     *  This file did not come with the theme
     * @package Yume
     */
    ?>
    <?php
    if (have_posts()) :
        while ( have_posts()): the_post();
            ?>
            <div  id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                <div class="topbarpost">
                    <div class="fleft"><i><?php _e( 'in', 'yume' ); ?></i> <?php the_category(', '); ?></div>
                    <div class="fright"><span class="postdate"><?php the_time( get_option( 'date_format' ) ); ?></span></div>
                </div>
                <div class="postcontent">
                    <?php if( has_post_thumbnail() ) { ?>
                        <div class="thumb thumbleft">
                            <a href="<?php the_permalink() ?>"><?php echo get_the_post_thumbnail( $post->ID, 'thumbnail'); ?></a>
                        </div>
                    <?php } ?>
                    <h2><a href="<?php the_permalink() ?>"><?php if(get_the_title($post->ID)) { the_title(); } else { the_time('j M Y');} ?></a></h2>
                    <p><?php the_excerpt(); ?></p>
                </div>
                <div class="postfooter">
                    <div class="fleft">
                        <span class="commentcount"><?php comments_popup_link('<span class="icon comments"></span> No Comments', '<span class="icon comments"></span> 1 Comment', '<span class="icon comments"></span> % Comments', 'comment-link'); ?></span>
                    </div>
                    <div class="fright"><a class="readmore" href="<?php the_permalink() ?>"><?php _e( 'Read More &#187', 'yume' ); ?></a></div>
                </div>
            </div>
        <?php endwhile; ?>
        <p class="pagination">
            <span class="prev"><?php next_posts_link(__('Previous Posts', 'yume')) ?></span>
            <span class="next"><?php previous_posts_link(__('Next posts', 'yume')) ?></span>
        </p>
    <?php else : ?>
        <h2 class="center"><?php _e( 'Not found', 'yume' ); ?></h2>
        <p class="center"><?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'yume' ); ?></p>
    <?php endif; ?>

    next you need to locate the file called archive.php in the same directory (wp-content/themes/yume/). Look for where it says:

    <?php get_template_part('content-post'); ?>

    change that line to:
    <?php get_template_part('content-archive'); ?>

    That should cause your archives to work.

    I just installed it o my localhost and I’m having the same problem, let me diagnose this and I will get back to you.

    Seems to me like the main content area is not updating for some reason, I an not sure why this is happening, but it is minor, something is not configured right. I will download this theme and see if I can make it work on my local testing server. I am quite sure it’s a simple fix. No worries.

    I would never advise downgrading. Most themes, if they are built with the coding standards and best practices outlined in the codex, can be upgraded to work with any new functionality offered in the new versions. I like to stay up to date with WordPress.

    It seems that it works just fine now. Please post any other problems you may have. Very nice site.

    I have gotten around issues with mobile devices breaking my layouts. I started using em measurements for everything. Now my sites adjust with screen font size. There is always a way to make drop-down menus in your theme, it requires some understanding of CSS and positioning.

    I would check in the customize menu an the dashboard. Your menu needs to be setup again in the menu section of the admin area each time you change templates. I would also check under Appearance for Theme Options as sometimes you can turn this functionality there. Another place to check out is under settings->permalinks.

    Forum: Fixing WordPress
    In reply to: [CDATA in pages

    That depends on the way your theme and WordPress installation are setup.
    I would be happy to offer any help just contact me.

Viewing 14 replies - 1 through 14 (of 14 total)