• Resolved patrickjames

    (@patrickjames)


    Good afternoon and hope you are having a lovely Christmas.

    I am adding your great plugin WPCM to a website and have managed to alter the appearance using the Child Theme.

    However, I am trying to make a couple of other little change to the templates but it is not working for me at all.

    For example, 2 changes I am trying to make are as follows:

    I wanted to change “Show Results” button to “Search Cars”. So I copied the “button.php” file, change the text to “Search Cars” and added it into my child theme using the following structure:

    Child Theme> wp-car-manager> templates> listings> filters> button.php

    The 2nd change was I wanted to change the email button to link to the “Book a test drive page”. I copied the file and change the a line of email code to:

    <?php
    if ( ” != $email && apply_filters( ‘wpcm_contact_email_link’, TRUE ) ) :
    ?>
    <a href=”https://www.carsandgarage.bombinatewebdesign.com/book-a-test-drive/&#8221;
    class=”wpcm-button wpcm-contact-button”><?php _e( ‘Contact Us’, ‘wp-car-manager’ ); ?>
    <?php endif; ?>

    <?php

    I then placed it in this folder:

    Child Theme> wp-car-manager> templates> single-vehicle> contact.php

    I have no idea what I am doing wrong but any help you could offer would be greatly appreciated it. Thanks is advance.

    Happy New Year to you and yours.

    Patrick ??

    P.s. I did email but email but couldn’t tell if it sent so my sincere apologies if this is duplicated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need to get rid of the templates folder…

    Change:
    Child Theme > wp-car-manager > templates > listings > filters > button.php

    To:
    Child Theme > wp-car-manager > listings > filters > button.php

    Change:
    Child Theme > wp-car-manager > templates > single-vehicle > contact.php

    To:
    Child Theme > wp-car-manager > single-vehicle > contact.php

    Regards,
    Patrick

    Plugin Author Barry Kooij

    (@barrykooij)

    Hey James,

    Patrick is right, please change the template folder structure as stated above.

    Kind Regards,

    Barry Kooij

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Template overrides no working’ is closed to new replies.