Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    your template does not call get_header() nor get_footer() functions so the template displays just the [adverts_list] without any styling.

    Either way, i create the templates for both Adverts Category and Locations, you can download them here https://www.dropbox.com/s/5thk6o1pmcry389/wpadverts-hello-elementor.zip?dl=0, just unzip and upload to hello-elementor theme or child-theme folder.

    Additionally, until next MAL version is released you would need to add the following code in theme functions.php file

    
    add_action( "init", function() {
      remove_filter('template_include', 'wpadverts_mal_template_include');
    }, 1000 );
    
    Thread Starter captaincrispycrunch

    (@captaincrispycrunch)

    Hi Greg, the header and footer were missing on purpose, I tried to figure out the ad listings first.
    Anyway, thank you so much for the files. I would have never figured out the filter exclude for the mal_template. Can you explain what is going there?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    the wpadverts_mal_template_include filter will try to force the Advert Location taxonomy page to use the theme page template instead of taxonomy template so when you create the taxonomy-advert_location.php file it will not be used until the filter is disabled.

    In the next MAL version, you will no longer need this code, the Adverts_Taxonomy class introduced in WPAdverts 1.4 will automatically detect the taxonomy-{taxonomy_name}.php files and disable the filter when needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Hello Elementor” Theme – Missing categories and location pages’ is closed to new replies.