Post by cspnz » Mon Apr 15, 2024 7:14 am

I'm trying to remove the Category Name from pages as per the attached image highlighted in red. I can achieve this with the provided code below:

<h1><?php echo $heading_title; ?></h1>

The only issue is that it also removes the Model details. in my instance the model is shown as part number. another screenshot should be attached for this.

How do i prevent this so that only the category name is removed from every page?

Attachments

2.png

Model / Part number - 2.png (823.5 KiB) Viewed 368 times

1.png

category name - 1.png (1.57 MiB) Viewed 368 times


Newbie

Posts

Joined
Mon Apr 15, 2024 7:05 am

Post by softmonke » Mon Apr 15, 2024 4:54 pm

cspnz wrote:
Mon Apr 15, 2024 7:14 am
I'm trying to remove the Category Name from pages as per the attached image highlighted in red. I can achieve this with the provided code below:

<h1><?php echo $heading_title; ?></h1>

The only issue is that it also removes the Model details. in my instance the model is shown as part number. another screenshot should be attached for this.

How do i prevent this so that only the category name is removed from every page?
What OpenCart version are you using?

By default, OpenCart Category pages not display "Model", and removing the Category name is as simple as removing the below line:

Code: Select all

<h1>{{ heading_title }}</h1>
Hence, I'm not sure how removing heading title can affect your products listing. More information would be required from you, such as:
  • Are you using any third-party extensions to display "Model" field in your products listing
  • How are you making the modification? - is it through OCMOD or are you making changes directly on the template file?
  • Are you using any third-party templates?

Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager ProDrag & Drop Sort Order

Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.


User avatar
Active Member

Posts

Joined
Tue May 23, 2023 4:42 am


User avatar
Guru Member
Online

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by MCE Digital » Tue Apr 16, 2024 1:48 am

I don't know the exact background, but would definitely not recommend removing it for SEO reasons.

Newbie

Posts

Joined
Thu Nov 29, 2018 10:32 pm
Who is online

Users browsing this forum: No registered users and 20 guests