• Hello Stylemix Themes,

    In motors classified layout theme megamenu top vehicles, the links are not pointing correctly to a certain top car url. If you check your classified layout demo, you can see the issue exists on your demo.

    Thank you very much for your help.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter Last Price

    (@lastpriceca)

    I found the bug and the fix:

    In file:
    /wp-content/plugins/motors-wpbakery-widgets/templates/stm_mm_top_vehicles.php
    Line 55:

    <a class="normal_font" href="<?php echo esc_url( get_the_permalink( stm_listings_user_defined_filter_page() ) ) . '?make=' . esc_url( $make ) . '&serie=' . esc_url( $serie ); ?>"><?php echo esc_html( $make_name->name . ' ' . $model_name->name ); ?></a>

    Remove the esc_url function from the $make and $serie variables
    Line 55 becomes:

    <a class="normal_font" href="<?php echo esc_url( get_the_permalink( stm_listings_user_defined_filter_page() ) ) . '?make=' . $make . '&serie=' . $serie; ?>"><?php echo esc_html( $make_name->name . ' ' . $model_name->name ); ?></a>

    This will prevent the URLs from being double-encoded and result in the correct URL format

    • This reply was modified 2 years ago by Last Price.
Viewing 1 replies (of 1 total)
  • The topic ‘Mega Menu Top Top Vehicles Links Issue’ is closed to new replies.