Hi,
it is but right now the only way to do that would be to open the wpadverts/includes/class-widget-ads.php on lines about 524 to 530 replace the location code with the category/taxonomy code.
The major downside to doing this is of course that all the changes you will make will be overwritten on the WPAdverts update.
Hi, i found this lines
<?php if( $location ): ?>
<div class="adverts-widget-recent-location">
<span class=" adverts-icon-location">
<?php echo ( $location ) ?>
</span>
</div>
<?php endif; ?>
I just have to change location word to category word?
One more question please, is it any way to customize ad photo size on widget frontend, make it bigger? https://ibb.co/D4tHDqB What parameters need to be changed for this?
Hi,
1. you would need to replace the whole code you pasted with code that will get category information from the database
<?php $category = get_the_terms( get_the_ID(), 'advert_category' ) ?>
<?php if( isset( $category[0] ) ): ?>
<div class="adverts-widget-recent-location">
<span class=" adverts-icon-tags">
<?php echo esc_html( $category[0]->name ) ?>
</span>
</div>
<?php endif; ?>
2. to change the image size in this widget you would need to customize the CSS code on lines 508 to 514 – note this will require some HTML/CSS knowledge to do.