Heading on products listing page

  • Posts: 5
  • Thank you received: 0
12 years 10 months ago #60173


Hi all!

Can someone please tell me how to put in a custom heading on my products listing page. I already know how i can select the menu title to show up as a heading, and how to play with the page display options but i dont want that. Is there any way to do a custom heading and not use any of the options from the joomla menu manager??

I also would like to insert a space between the heading and the products pane since they are too close...i have included a screenshot of how it looks.

since i am beginner (dont know much about coding) can you please tell me the steps?

Thank you in advance!

Attachments:

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
12 years 10 months ago #60290

Hi,

Next version of HikaShop that we're going to release in a few days will allow you to configure a custom page heading.
Until then, if you want to do that, you first need to create a custom field of the table "category" (essential and business edition only) and then you can add that code:
$doc =& JFactory::getDocument();
$doc->setTitle($this->element->custom_title);

at the beginning of the listing file of the view product (after the first <?php tag ) that you can edit via the menu Display->Views.

For the spacing, you can do that in CSS.
Normally that's your template's CSS which has some CSS for that spacing. But you can add it manually by editing the front end CSS file of HikaShop via the Display tab of the configuration and adding the CSS code:
h1, h2{
margin-bottom: 20px !important}
}

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

  • Posts: 5
  • Thank you received: 0
12 years 10 months ago #60293

Ok, great, i will try it right now...but how would i edit the size and set the font to bold for the heading that i will create with custom fields?Since the custom fields creation doesnt allow you to play with font size, etc

I also have another question......how can i disable or hide a module from the product and checkout pages? I need the module on the product listing page but not on the product page or the checkout page.

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

  • Posts: 5
  • Thank you received: 0
12 years 10 months ago #60297

I just tried out what you told me but its not working :( when i add a custom "category" field and fill it out with custom text, then i go to the front end, and all it displays is "additional information" and not what i created...

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
12 years 10 months ago #60364

My bad, that code was for the title of the meta data, not the title of the page.
For the title of the page, you can add that code instead:
echo '<span style="font-size:2em">'.$this->element->custom_title.'</span>';

For the module display/hide, you can use the advanced module manager extension:
extensions.joomla.org/extensions/style-a...les-management/10307
It allows you to restrict modules based on the URL.

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

  • Posts: 5
  • Thank you received: 0
12 years 10 months ago #60385

Hi Nicolas!

Still not working my friend.....attached is the screen shot of the only header i get when i follow your instructions, the same "additional information" text....im getting incredibly frustrated at myself :angry:

Been stuck on this for the past 4 days, is there an other easy way of doing this?? I need to get the site up and running ASAP.

Is it me or this just doesn't wanna work??

Attachments:

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

  • Posts: 83992
  • Thank you received: 13604
  • MODERATOR
12 years 10 months ago #60424

You should keep the custom field turned off for front end display.

If that code doesn't display the title, it's likely that either the field is not configured properly, that your didn't enter any text in the field for the category or that you didn't add the code in the correct view file or for the correct template (it should be done for the template you're using on your front end).

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

Time to create page: 0.105 seconds
Powered by Kunena Forum