Skip to main content

How to remove the product title

More
15 years 5 months ago #14766 by Bugger101
Hi Nicolas,

Is there a way to remove the product title?

Thanks :)

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14781 by nicolas
Where ?

In most of the cases some CSS should do but it will differ based on where you want to remove it...

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago - 15 years 5 months ago #14870 by Bugger101
The title in the pic attached :)
Last edit: 15 years 5 months ago by Bugger101.

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14885 by nicolas
You can edd the CSS below in the hikashop CSS via the interface we provide in the config under the tab display in the CSS area:
.hikashop_product_name_main{
display: none;
}

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14889 by Bugger101
Thanks Nicolas, did you mean add the code to the CSS? Is it the front end CSS like in the attached pic? I did that, and still no change - refreshed a few times and cleared cache.

Do I need to add it to the backend?

Thanks :)

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14890 by nicolas
Yes. That's it.

Could you give the URL to that page so that we can see ?

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14891 by Bugger101
My site isnt live yet, so I can't post a link sorry :(

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14893 by nicolas
Then, maybe you could send it via our contact form ?

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14926 by nicolas
We had a look at your website.
You are still using the "default" CSS file instead of the "custom" CSS file for your front end.
So the modification you made in the "custom" file is not used.
You can see the file used in the HTML of your pages:
Code:
<link rel="stylesheet" href="/~furlessc/media/com_hikashop/css/frontend_default.css" type="text/css">

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14927 by Bugger101
WOO HOO! It works now - thanks so much, and happy easter! :) :woohoo: :woohoo:

Please Log in or Create an account to join the conversation.

More
15 years 5 months ago #14938 by nicolas
Happy easter too ! :)

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #15448 by Bugger101
G'day,

The titles are showing again... Could it be because I re-installed HikaShop for the Eway update?

I can see the code is still there in the custom CSS section, but the titles are showing...

Thanks :)

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #15455 by nicolas
I just checked your website and I don't see the titles on your product pages.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago - 12 years 8 months ago #15457 by Bugger101
Weird, I checked in Chrome, and no titles, and then in Firefox, the titles show on some, and not others... Like this one here:

Thanks :)
Last edit: 12 years 8 months ago by Bugger101.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #15467 by nicolas
There seems to be some javascript code from your template which changes the span tags inside h2 tags:
Code:
window.addEvent('domready', function() { var modules = ['rt-block']; var header = ['h3','h2','h1']; GantryBuildSpans(modules, header); });
That results in the class name of the span disappearing on FireFox and thus, the CSS you wrote cannot be applied anymore by FireFox.

It seems that this javascript is used by the RT templates to apply special fonts on h* tags but it applies that on all the website and the checks are not strict enough. Here is some solutions on post N°7 :
translate.google.com/translate?hl=en&sl=...Ddsc%26prmd%3Divnsfd

I would recommend though to ask the RT team about a proper fix.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #15468 by nicolas
By the way, if you want to circumvent easily the problem, instead of using CSS to hide the product name, you could edit the file show of the view product via the menu Display>Views and remove the code :
echo $this->element->product_name;
and the code:
echo $variant->product_name;

That way the product name won't be displayed by PHP at all.

Please Log in or Create an account to join the conversation.

More
15 years 4 months ago #15528 by Bugger101
Awesome, thanks so much :) You guys should win an award for best Joomla support! :woohoo: :woohoo: :woohoo:

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27303 by Rollerskate
Oh crap. So I tried removing this from the product "Show" file under Display, View

echo $this->element->product_name;
and the code:
echo $variant->product_name;

And it didn't quite work, so I put it back.

Now, it only shows this: "Orange_Hawkweed_5" instead of "Orange Hawkweed"
www.therollerskate.com/photos/all-photos...ct/1-orange-hawkweed

Help :(

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27304 by nicolas
That code is in charge of displaying the product name. If you remove it that will remove the name...
You should put it back and instead remove its equivalent:
echo $this->element->product_code;
and:
echo $variant->product_code;

Please Log in or Create an account to join the conversation.

More
14 years 11 months ago #27305 by Rollerskate
Ok, I put it back (I had it backed up in notepad thank god) and removed just this line: "echo $this->element->product_code;"

That seemed to work, it is necessary to remove "echo $variant->product_code;" as well?

Please Log in or Create an account to join the conversation.

Time to create page: 0.303 seconds
Powered by Kunena Forum