How to remove the product title

  • Posts: 392
  • Thank you received: 0
13 years 7 months ago #14766

Hi Nicolas,

Is there a way to remove the product title?

Thanks :)

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14781

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.

  • Posts: 392
  • Thank you received: 0
13 years 7 months ago #14870

The title in the pic attached :)

Attachments:
Last edit: 13 years 7 months ago by Bugger101.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14885

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.

  • Posts: 392
  • Thank you received: 0
13 years 7 months ago #14889

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 :)

Attachments:

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14890

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.

  • Posts: 392
  • Thank you received: 0
13 years 7 months ago #14891

My site isnt live yet, so I can't post a link sorry :(

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14893

Then, maybe you could send it via our contact form ?

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14926

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:

<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.

  • Posts: 392
  • Thank you received: 0
13 years 7 months ago #14927

WOO HOO! It works now - thanks so much, and happy easter! :) :woohoo: :woohoo:

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 7 months ago #14938

Happy easter too ! :)

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

  • Posts: 392
  • Thank you received: 0
13 years 6 months ago #15448

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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 6 months ago #15455

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.

  • Posts: 392
  • Thank you received: 0
13 years 6 months ago #15457

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: 10 years 10 months ago by Bugger101.

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

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 6 months ago #15467

There seems to be some javascript code from your template which changes the span tags inside h2 tags:

do_nothing( 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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 6 months ago #15468

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.

  • Posts: 392
  • Thank you received: 0
13 years 6 months ago #15528

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.

  • Posts: 164
  • Thank you received: 0
13 years 1 month ago #27303

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.

  • Posts: 82868
  • Thank you received: 13378
  • MODERATOR
13 years 1 month ago #27304

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.

  • Posts: 164
  • Thank you received: 0
13 years 1 month ago #27305

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.107 seconds
Powered by Kunena Forum