• Hi there, new poster so apologies if a bit ‘basic’

    I am looking to override a plugin’s frontend output view and was instructed to do the following:

    A. In order to override the [PLUGIN] views please do following steps:

    1- Connect to your host(local) and go to plugins/[PLUGIN]-pro
    2- Download the view that you want override from the templates folder. for example details page, templates/single/style2.php
    3- Upload the file in your child theme like THEME_DIRECTORY/[PLUGIN]/single/style2.php .
    4- Now you can change style2.php which is in your theme(or child theme) and create structure as you want.

    I think I am doing steps 1 to 3 correctly using filezilla, but then what? Where and how do I start adding/removing features?”

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The template file contains PHP and HTML code that generates output. You can use the theme editor (under Appearance in the admin area) to alter the template code that you copied to your child theme. If you’re removing content but aren’t sure what to remove, experimentally make likely looking code into a comment so that it doesn’t execute. You can then easily restore the code if it doesn’t have the effect you wanted. You still must ensure remaining code maintains proper syntax and that you don’t remove variable assignments which are still needed in active code.

    Unless you’re super confident in what you’re changing, don’t edit an active theme. First switch to the parent theme before editing child code. You can restore the child after editing. If you introduced an error, the child will fail to activate. Test your changes frequently so in case of an error, you’ll have a good idea where things went wrong.

Viewing 1 replies (of 1 total)
  • The topic ‘Amending Plugin’ is closed to new replies.