The developer forgot to remove the category ID output in the Delta and Gamma templates.

aikis

Active member
Elite
XNullUser
Joined
Oct 9, 2021
Messages
125
Reaction score
108
Points
43
Website
autopmr.com
NullCash
69
The developer forgot to remove the category ID output in the Delta and Gamma templates. Has anyone struggled with this? How can I remove them? Please advise!
 

Attachments

  • Снимок экрана_30-7-2025_111427_autopmr.com.jpeg
    Снимок экрана_30-7-2025_111427_autopmr.com.jpeg
    198.3 KB · Views: 4

canismano

Member
XNullUser
Joined
Nov 16, 2024
Messages
111
Reaction score
20
Points
18
Location
id
NullCash
132
That's not a category ID, i thing the code location and if you're using the Delta theme, look for the item.php file. You can try

starting on line 199, look for the <!-- HEADER & BASIC DATA --> for desktop/ tablet, location section.

in line 207,

<div class="location">
<?php if($location <> '') { ?>
<a target="_blank" href="https://maps.google.com/maps?daddr=<?php echo urlencode($location); ?>">
<?php echo $location; ?>
</a>

replace with ==>

<div class="location">
<?php if($location <> '') {
// Remove the comma and number or up to 3 capital letters at the end, example: ", JAK"
$clean_location = preg_replace('/,\s?([A-Z]{1,3}|\d{1,3})$/', '', $location);
?>
<a target="_blank" href="https://maps.google.com/maps?daddr=<?php echo urlencode($clean_location); ?>">
<?php echo $clean_location; ?>
</a>


and starting line 307, <!-- HEADER & BASIC DATA --> for mobile, location section, you do the same thing
 
Top