Forum Replies Created

Viewing 15 posts - 1 through 15 (of 20 total)
  • in reply to: Q & A stopped working #268732
    BBMagnus
    Member
    Post count: 20

    We are using WP Super Cache. But I have cleared the cache and the problem persists.

    There is no cache for logged in users btw.

    in reply to: Q & A stopped working #268687
    BBMagnus
    Member
    Post count: 20
    This reply has been marked as private.
    in reply to: Bug: Information slidedown lagging out #255729
    BBMagnus
    Member
    Post count: 20

    I am sorry but that’s not possible. The site is in live mode ATM.

    BBMagnus
    Member
    Post count: 20

    Thank you! 🙂

    BBMagnus
    Member
    Post count: 20

    Yes exactly, I am referring to that file.

    It looks like this right now:

    
    <?php if ( have_posts() ) : the_post(); ?>
    
        <?php do_action( 'sf_page_content_before' ); ?>
    
        <div <?php post_class( 'clearfix' ); ?> id="<?php the_ID(); ?>">
    
            <?php do_action( 'sf_page_content_start' ); ?>
    
            <?php the_content(); ?>
    
            <div class="link-pages"><?php wp_link_pages(); ?></div>
    
            <?php
                /**
                 * @hooked - sf_page_comments - 10
                 **/
                do_action( 'sf_page_content_end' );
            ?>
    
        </div>
    
        <?php do_action( 'sf_page_content_after' ); ?>
    
    <?php endif; ?>
    

    And the loop is never closed since no have_posts() are being run after the last post has been “printed”.

    I suggest this instead:

    
    <?php while ( have_posts() ) : the_post(); ?>
    
        <?php do_action( 'sf_page_content_before' ); ?>
    
        <div <?php post_class( 'clearfix' ); ?> id="<?php the_ID(); ?>">
    
            <?php do_action( 'sf_page_content_start' ); ?>
    
            <?php the_content(); ?>
    
            <div class="link-pages"><?php wp_link_pages(); ?></div>
    
            <?php
                /**
                 * @hooked - sf_page_comments - 10
                 **/
                do_action( 'sf_page_content_end' );
            ?>
    
        </div>
    
        <?php do_action( 'sf_page_content_after' ); ?>
    
    <?php endwhile; ?>
    

    Although we know that there will only be one post WordPress is built with a loop, allowing for more than one post.

    My suggestion adds a while loop instead of an if-statement, this will make have_posts() run one more time after the_post() has been called.

    Since I can’t override the swift-framework files I have added my quickfix to the atelier/page.php file, adding a have_posts() before get_footer(), closing the loop.

    BBMagnus
    Member
    Post count: 20

    What I discovered was that in the page template you are running:

    if( have_posts() ) : the_post();

    and not

    while( have_posts() ) : the_post();

    This means that the code setting the query variable “in_the_loop” is not set to false.

    This means that you are not ending “the loop”.

    WooCommerce has a add_filter for “the_title” which checks for in_the_loop() to check if the title is the main page title.

    “the_title” also runs for all the menu items in the footer menu.

    I will do a quick-fix for my customer by overriding the page.php – file and adding have_posts() in the bottom of the file just before the footer code.

    Please have a look at this.

    BBMagnus
    Member
    Post count: 20

    Is there any scope to test this all plugins deactivated leaving only Woo and Swift Framework active?
    I have tested this on my local machine, I don’t want to deactivate everything on this site since it’s going to be published live soon. An important note is that I have tried WordPress twentythirteen with the same plugins by just switching to that theme and it don’t feature the same issue.

    – Can we have access to the login details with an order?
    I have created an order for your login.

    – Swift Framework 2.0.2 has now been released, you look to be using 1.66?
    That was true, I have updated now – still have the issue though 🙁

    in reply to: Bug: Information slidedown lagging out #253378
    BBMagnus
    Member
    Post count: 20
    This reply has been marked as private.
    in reply to: Bug: Information slidedown lagging out #253001
    BBMagnus
    Member
    Post count: 20

    I have a child theme.

    in reply to: Bug: Information slidedown lagging out #251030
    BBMagnus
    Member
    Post count: 20
    This reply has been marked as private.
    in reply to: Bug: Information slidedown lagging out #250226
    BBMagnus
    Member
    Post count: 20

    Where should I submit the WP login credentials?

    in reply to: Translation-file in child theme #249262
    BBMagnus
    Member
    Post count: 20

    Works now!

    in reply to: Translation-file in child theme #249231
    BBMagnus
    Member
    Post count: 20

    It doesn’t seem to override the translations in the main theme for some reason…

    in reply to: Translation-file in child theme #247944
    BBMagnus
    Member
    Post count: 20

    Well in that guide you replace the file in wp-content/themes/atelier/languages/, this means that when I update atelier my language files will be overwritten, will it not?

    in reply to: Translation-file in child theme #247911
    BBMagnus
    Member
    Post count: 20

    The problem is that the parent theme, Atelier, is not fully translated in swedish / the translations are not correct. I want to fix these translations but I can’t load my own translations for the theme Atelier.

Viewing 15 posts - 1 through 15 (of 20 total)