Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #569968

    Hey!
    I’m using Enfold in combination with woocommerce. I have got a problem with the number of Products displayed on a page. If I want to click on the second (third…) page, you stay on the first page.
    Do you have any idea?
    Cheers!
    Daria

    #570095

    Hi Daria!

    try to deactivate all plugins, to check if one is causing this issue and let us know about your results.

    Are we allowed to deactivate all your plugins temporarily by ourselves as well for testing purposes?

    You could try this solution as well: https://core.trac.wordpress.org/ticket/35344#comment:34, but make a backup of the file before modifying it, just in case.

    Regards,
    Andy

    #570219

    Hi Andy,
    I allow you to deactivate all plugins for testing by yourself.
    I already made a backup!
    many thanks
    Daria

    #571292
    #572043

    Hi Andy!
    Thank you! Your topic has solved the problem only for internal pages.
    To fix it in the front page I used the following code:

    Change in wp-includes/canonical.php lines 264-270 from this:
    <?php
    // Post Paging
    if ( is_singular() && ! is_front_page() && get_query_var(‘page’) ) {
    if ( !$redirect_url )
    $redirect_url = get_permalink( get_queried_object_id() );
    $redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( get_query_var( ‘page’ ), ‘single_paged’ );
    $redirect[‘query’] = remove_query_arg( ‘page’, $redirect[‘query’] );
    }

    to that:
    <?php
    // Post Paging
    if ( is_singular() && get_query_var(‘page’) && ( !is_front_page() || ( isset($wp_query->queried_object) && ‘page’ == get_option(‘show_on_front’) && $wp_query->queried_object->ID == get_option(‘page_on_front’) ) ) ) {
    if ( !$redirect_url )
    $redirect_url = get_permalink( get_queried_object_id() );
    $page = get_query_var( ‘page’ );
    if ( is_front_page() ) {
    $redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( “$wp_rewrite->pagination_base/$page”, ‘paged’ );
    } else {
    $redirect_url = trailingslashit( $redirect_url ) . user_trailingslashit( $page, ‘single_paged’ );
    }
    $redirect[‘query’] = remove_query_arg( ‘page’, $redirect[‘query’] );
    }

    Have I nice day!
    Daria

    #574027

    Hi!

    thx a lot for sharing your solution with us!

    Let us know in a new ticket if you have some more question about the theme. We are happy to assist you!

    Cheers!
    Andy

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.