How to modify class-featured-listings-widget.php
-
There are several edits I need to make to the class templates. For example, I’ve filtered the Property Details to include Maximum Occupancy:, and also to add before the price “Per Night” which both work as expected on single posts, but I need to include that edit also with the Featured Listing Widgets.
I copied the class-featured-listings-widget.php file to my theme’s folder, included it in my functions
include (get_stylesheet_directory() . '/class-featured-listings-widget.php');
and had these results:First, by just copying it, the error that it couldn’t redeclare a class (which makes sense enough).
Then, I edited the file in my theme folder to change all instances of class-featured-listings-widget.php to bb-class-featured-listings-widget.php, which removed the error, but did nothing else.
I’ve also renamed the file in my theme folder to bb-class-featured-listings-widget.php and change the url in the functions accordingly, which resulted in nothing.I’d like to learn how I can edit the class files, too.
- The topic ‘How to modify class-featured-listings-widget.php’ is closed to new replies.