Few bugs / Issues

This topic contains 9 replies, has 2 voices, and was last updated by  CTHthemes 2 weeks, 1 day ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #35571

    GoreBlimey
    Participant

    Supported

    Hi,

    I’ve come across a few bugs and have some other questions.

    1) My pagination is not working – see http://staging.amazingdaysout.com/amazing/adventure.html when I click page two, it returns no results found?

    2) Mega menus – I’ve tried a few including quad and jetmenu but nothing seems to work well or only works on desktop

    3) It is possible to load a persons location as the page loads (given that have agreed to location services)? For example, see https://amazingdaysout.com/top-locations.html

    4) I am trying to override templates using a child theme but they are not being recognised, I have followed the instructions from https://docs.cththemes.com/ but still, nothing works? See attached image

    Thanks

    Attachments:
    You must be logged in to view attached files.
    #35617

    CTHthemes
    Keymaster

    1 – There is no pagination to check.

    2 – I think you need to do some customization work ( or css code )

    3 – It’s not possible.

    4 – You don’t need citybook-add-ons folder and templates folder must be in cth_listing folder.

    /ado-child/cth_listings/templates/listing-search.php

    #35619

    GoreBlimey
    Participant

    Supported

    1) No pagination?!?!?!

    So when I click the number 2 in a category page, it always returns…

    No Results
    There are no listings matching your search.

    Try changing your search filters or Reset Filter

    For example, see http://staging.amazingdaysout.com/amazing/animals-nature.html and click the number “2”

    2)————

    3)Would be a great feature for the next release

    4) OK, go that to work overriding listing-search.php

    On another thread, you gave me the code to customise the locations and categories

    
    // CHILD THEME SUPPORT FOR CUSTOMISATION
    add_filter( 'template_include', function($template){
        if ( is_tax('listing_cat') ) {
    
            $template = citybook_addons_get_template_part('templates/listing', 'cat', null, false);
    
        }elseif( is_tax('listing_location') ){
            
            $template = citybook_addons_get_template_part('templates/listing', 'loc', null, false);
    
        }
        return $template;
    }, 15 );

    But this returns a blank screen, debug shows nothing?

    Thanks.

    #35636

    CTHthemes
    Keymaster

    1 – It’s working: https://prnt.sc/p14px6

    4 – You have to create new template for listing category and location for customization.

    child-theme/cth_listing/templates/listing-cat.php
    child-theme/cth_listing/templates/listing-loc.php

    The original code from citybook-add-ons/templates/listing-search.php file.

    #35645

    GoreBlimey
    Participant

    Supported

    4 – I’ve done that to the letter, but all I get is a blank screen.

    Is the code you send 100% correct?

    
    add_filter( 'template_include', function($template){
        if ( is_tax('listing_cat') ) {
    
            $template = citybook_addons_get_template_part('templates/listing', 'cat', null, false);
    
        }elseif( is_tax('listing_location') ){
            
            $template = citybook_addons_get_template_part('templates/listing', 'loc', null, false);
    
        }
        return $template;
    }, 15 );
    #35679

    CTHthemes
    Keymaster

    Send me the page link to check.

    #35708

    GoreBlimey
    Participant

    Supported

    There is a link in this thread. http://staging.amazingdaysout.com/amazing/animals-nature.html

    Thanks

    #35717

    CTHthemes
    Keymaster

    I don’t see any error or code for your page: https://prnt.sc/p1md0v
    Please make sure that you do customization correctly.

    #35720

    GoreBlimey
    Participant

    Supported

    That’s what I have been telling you for the past week! 🙂

    The code is 100% as you sent it and for some reason, it just doesn’t work. As soon as I add the code to functions.php I get a blank page.

    #35728

    CTHthemes
    Keymaster

    Hello, We don’t provide support customization question. And my answer is a reference. If you don’t familiar with php code, order a customization service here: https://studio.envato.com/explore/wordpress

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.

New featues: CityBook - Listing & Directory WordPress Theme version 2.1.8 was outUpdate now
+