How to add tabs with color styling in CSS

  • Posts: 63
  • Thank you received: 6
11 years 3 months ago #161026

Hi,

I would like to add tabs with some color styles to my product pages without that the tabber code is on the product page itself because we are avoiding multiple changes when we have to change or add tabs on the existing product pages, it's more practical for us to change only one code for all the the tabs changes or additional tabs, considering over thousands of product pages. I have been trying to apply this tab issue: www.hikashop.com/forum/2-general-talk-ab...uct-detail-page.html to my site but I don't know exaclty how it works and where to go to. I am new to the CSS world and have not much knowledge of it, Please help me out of this.

What we like exactly are the following:
1. Tabber code which will be added at the CSS code and not on the product page itself. What is the code and where to add it?

2. Code for the Color style of the tab. Please see attached file.

Attachments:

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 3 months ago #161054

Hi,

Tabber cannot be added in the CSS. Tabber uses tags in the HTML code of the page and can only process them in the HTML. So I don't understand what you're trying to do.
If you want to personalize the colors of the tabs of tabber, I would recommend to contact the support of the tabber extension. They know better their extension than we do and will be able to provide a better answer than we could.

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

  • Posts: 63
  • Thank you received: 6
11 years 3 months ago #161223

Hi Nicolas,

I got it. I was thinking about it from the perspective of the management of this system. Centralized controllable product templates are a major plus point when you have to handle a huge amount of articles. Is there any advice about product templates or something similar?

Thanks for your prompt reply.

Regards,

Wella

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 2 months ago #161243

Hi,

If you want to edit the template of the product page with have documentation on that available here:
www.hikashop.com/support/support/documen...-display.html#layout
Also, note that by changing the "layout on product page" option of the configuration to "tabular" you would already be able to have automatically generated tabs. So if you have a huge amount of articles, it would be easier to enter the data of the tabs.
However, if based on the tabs you want, you might have to customize the view file show_tabular to add/remove/change some of the tabs of the layout: www.hikashop.com/forum/product-category-...-tabular-layout.html

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

  • Posts: 63
  • Thank you received: 6
11 years 2 months ago #161294

Hi Nicolas,


1. I found the Hikashop tabular thanks for your information. We are now using the NoNumber tabs and they fit better to our template.

2. I followed your link(forum) as you can see below(code) but I am a novice in all of these and I'm making now a fast learning curve. I am now searching for hours where these codings will be added i still cannot find it, can you give me a hint where? I understood I have to go to Display, Views, "product / show_tabular" , and then? where must I exactly add these codings?


<li id="hikashop_show_tabular_custom_li" class="hikashop_tabs_li ui-corner-top"><a onclick="displayTab('hikashop_show_tabular_custom');" href="javascript:void(0);"><?php echo JText::_('YOUR_TAB_NAME');?></a></li>

In the <ul class="hikashop_tabs_ul"> element.
Then add a div with content after the "ul" thanks to:

<div class="hikashop_tabs_content" id="hikashop_show_tabular_custom">
<!-- Your div content -->
</div>


Wella

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

  • Posts: 84315
  • Thank you received: 13706
  • MODERATOR
11 years 2 months ago #161317

Hi,

If you want to use the nonumber tabs, then you don't want to use the tabular view file.
You can use the default one and thus edit the file "show_default".
There, add the tabs tags as explained by the nonumber documentation directly in the HTML of the layout. You'll have to rearrange a bit the HTML to display what you want in each tab.

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

  • Posts: 63
  • Thank you received: 6
11 years 2 months ago #161373

Thank you Nicolas for your advice. We will work on this!

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

Time to create page: 0.066 seconds
Powered by Kunena Forum