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
140
Reaction score
123
Points
43
Website
autopmr.com
NullCash
83
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: 9

canismano

Active member
XNullUser
Joined
Nov 16, 2024
Messages
119
Reaction score
29
Points
28
Location
id
NullCash
173
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
 

aikis

Active member
Elite
XNullUser
Joined
Oct 9, 2021
Messages
140
Reaction score
123
Points
43
Website
autopmr.com
NullCash
83
Great, everything worked out, thanks for your knowledge!
 
Top