• Resolved tristan.stgermain

    (@tristanstgermain)


    Hi,

    First thanks for this useful plugin with a lot of configuration, it looks perfect to me (regarding all I’ve tested before). But I’m facing little problem with home page and pages in general. My default language is French, 2nd is English.

    My home page is a static page witch is loading articles (blog excerpt). So I’ve defined a new home page in En, new menu in EN and start translate articles but when I’m switching from French to English, the home menu is still loading French articles.
    Also (maybe it’s linked) I’ve got a 404 error on all pages (not on articles).

    Got an idea to help me ??

    Thanks !

    https://www.ads-software.com/extend/plugins/polylang/

Viewing 15 replies - 16 through 30 (of 34 total)
  • Thread Starter tristan.stgermain

    (@tristanstgermain)

    Hi,

    I’ve tested with permalinks in Fr + in En saved again it’s the same. The same too without any plugin activated except polylang, so it should come from the theme?

    Here is my page.php code just in case ??

    <?php
    
    // Exit if accessed directly
    if ( !defined('ABSPATH')) exit;
    
    /**
     * Pages Template
     *
     *
     * @file           page.php
     * @package        Responsive
     * @author         Emil Uzelac
     * @copyright      2003 - 2012 ThemeID
     * @license        license.txt
     * @version        Release: 1.0
     * @filesource     wp-content/themes/responsive/page.php
     * @link           https://codex.www.ads-software.com/Theme_Development#Pages_.28page.php.29
     * @since          available since Release 1.0
     */
    ?>
    <?php get_header(); ?>
    
            <div id="content" class="grid col-620">
    
    <?php if (have_posts()) : ?>
    
    		<?php while (have_posts()) : the_post(); ?>
    
            <?php $options = get_option('responsive_theme_options'); ?>
    		<?php if ($options['breadcrumb'] == 0): ?>
    		<?php echo responsive_breadcrumb_lists(); ?>
            <?php endif; ?>
    
                <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
                    <h1><?php the_title(); ?></h1>
    
                    <?php if ( comments_open() ) : ?>
                    <div class="post-meta">
    
                    </div><!-- end of .post-meta -->
                    <?php endif; ?> 
    
                    <div class="post-entry">
                        <?php the_content(__('Read more ?', 'responsive')); ?>
                        <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
                    </div><!-- end of .post-entry -->
    
                    <?php if ( comments_open() ) : ?>
                    <div class="post-data">
    				    <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
                        <?php the_category(__('Posted in %s', 'responsive') . ', '); ?>
                    </div><!-- end of .post-data -->
                    <?php endif; ?>             
    
                <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
                </div><!-- end of #post-<?php the_ID(); ?> -->
    
                <?php comments_template( '', true ); ?>
    
            <?php endwhile; ?> 
    
            <?php if (  $wp_query->max_num_pages > 1 ) : ?>
            <div class="navigation">
    			<div class="previous"><?php next_posts_link( __( '? Older posts', 'responsive' ) ); ?></div>
                <div class="next"><?php previous_posts_link( __( 'Newer posts ?', 'responsive' ) ); ?></div>
    		</div><!-- end of .navigation -->
            <?php endif; ?>
    
    	    <?php else : ?>
    
            <h1 class="title-404"><?php _e('404 — Fancy meeting you here!', 'responsive'); ?></h1>
            <p><?php _e('Don't panic, we'll get through this together. Let's explore our options here.', 'responsive'); ?></p>
            <h6><?php _e( 'You can return', 'responsive' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'responsive' ); ?>"><?php _e( '← Home', 'responsive' ); ?></a> <?php _e( 'or search for the page you were looking for', 'responsive' ); ?></h6>
            <?php get_search_form(); ?>
    
    <?php endif; ?>  
    
            </div><!-- end of #content -->
    
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

    Thanks !!

    Plugin Author Chouby

    (@chouby)

    What do you call “permalinks in Fr + in En” ?

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    I mean I’m going in a page edition and change the permalink and save it. That’s it?

    Ov3rfly

    (@ov3rfly)

    “resave your permalinks” means:

    Open this page in admin area: “Settings -> Permalinks” and click “Save Changes”

    https://example.com/wp-admin/options-permalink.php

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    Oh OK, it’s done, it result the same error, sorry.

    Plugin Author Chouby

    (@chouby)

    What is your permalink setting?
    And what are your Polylang settings?

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    Plugin Author Chouby

    (@chouby)

    I still can’t reproduce (with WP 3.5.1 + Polylang 1.0.1 + Responsive 1.8.9.3). However I see from your settings that you have other plugins activated. One of these plugins can conflict with Polylang. Could you try to de-activate them all again and after that, click on “Save changes” in “Settings -> Permalinks” (keeping other plugins de-activated).

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    Hum I’ve tested without any extension activated, got the same so it should only come from the theme I guess.
    I’ve got version 1.6.8, should I update it?

    Thanks.

    Plugin Author Chouby

    (@chouby)

    Yes. You should.

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    I just upadted the theme and the problem stay the same ??

    Plugin Author Chouby

    (@chouby)

    That’s crazy. I do not understand what could be different in your site from mine. Moreover, I know that other users use this theme without any problem…

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    Hi,

    Yes yes crazy it’s a theme witch is used a lot.
    Can I contact someone that can solve my problem directly, I can pay for that of course ??

    Thanks again for your time.

    Plugin Author Chouby

    (@chouby)

    This kind of offer is not allowed on the forum: see https://codex.www.ads-software.com/Forum_Welcome#Offering_to_Pay

    But I will go on helping you for free ?? I want Polylang to be fully compatible with the Responsive theme. You can contact me here.

    Thread Starter tristan.stgermain

    (@tristanstgermain)

    OK sorry I’ll do that of course.

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Defining a home page’ is closed to new replies.