• Hi there. Nice Theme by the way. I liked very much. After I installed the theme, the category, the menu, the arhvie is not wotking. I tried diffrent plugins for permanent link and not working. I change the theme with old theme and all working. Is there a possibility to solve this. Thank you very much. And bravo for the theme, very nice very simple, I liked much.

Viewing 15 replies - 1 through 15 (of 16 total)
  • 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.

    Thread Starter dorel.puchianu

    (@dorelpuchianu)

    Thank you for your prompt response. I can setup again the menu it’s not a problem, but, the category from widget is not working. Can you please look at the site https://www.myc.ro. Even the Archive is not working. At this moment is not a problem that the menu is not working, because I didn’t rebuild. Maybe is some minor incombatibility with the 3.8 wordpress version? With 3.8 wordpress version I have a lot of problemes with another theme… So a downgrade to 3.7 wordpress, maybe will work with yume theme…

    Well the yume theme is very beautiful. I hope you’ll find the problem. Thank you again.

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

    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.

    Thread Starter dorel.puchianu

    (@dorelpuchianu)

    Well the old theme is working.

    You can please look now at the site? Now It’s the Yume Theme, and unfortunately it’s not working archive (arhiva) and category (categorii).

    For example if I try to change the category to Video, nothing is happen.
    What can be the problem? Plugins?

    Thank you for your response and for your advise.

    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 just installed it o my localhost and I’m having the same problem, let me diagnose this and I will get back to you.

    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.

    Make sure that you name the file:

    content-archive.php

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    That was a really good reply and thanks for that. But do you think you can include the part about create and activate a child theme of yume first? ??

    https://codex.www.ads-software.com/Child_Themes

    If the theme gets updated then all of the content-archive.php code will be lost. By creating a child theme you avoid that.

    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.

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

    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.

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

    Theme Author Topfed

    (@stefan002377)

    I solved this problem in the last update Yume 2.0, Sorry for the problems created

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘category and archive not working’ is closed to new replies.