How to disable top logo text in K2 items (rule format)

GK User
Tue Aug 25, 2015 6:27 pm
Hi,

I would like to disable the template top text logo in several portfolio k2 items.

These items are selected through a k2 category view (not by a menu item).

I have configured the template to disable to top logo in selected pages, but when I add a rule with the id of a specific k2 item, the top logo text is shown.

I have created a menu item to show a specific k2 item. I have changed the rule to include the menu item Id and the top logo text is hidden (no matter if the item is selected through the menu or the category view)

Is there any option or rule format to avoid the generation of fake menu items?

Regards...Antonio
User avatar
Junior Boarder

teitbite
Thu Aug 27, 2015 8:18 pm
HI

I'm afraid I do not understand. Can You please explain it one more time ? Add some links to examples or screenshots so I'll be able to understand it better.
User avatar
Moderator

GK User
Fri Aug 28, 2015 10:14 am
OK. I have prepared some screenshots to show you my problem using the demo site:

My objective is to remove the logo texts in a specific k2 item not accesible directly through a k2 single item menu item.
The k2 item selected to disable the logo is the Soak it up! ... with k2 item id 378
01_expected_result.jpg

This item can be accessed by the Blog Category menu item (Menu item id: 1052) as you can see in the next screenshot:
02_blog_category_menuitem.jpg

To disable the logo in specific pages, I go to the gkPhoto template configuration (Features tab), and I try to define a rule as you can see in the next screenshot:
03_template_config.jpg

Any help?

Regards....Antonio
User avatar
Junior Boarder

teitbite
Sat Aug 29, 2015 5:12 pm
Hi

You can use page class suffix to disable it: https://www.gavick.com/documentation/jo ... omla-pages (example how it works)

Than add a code to override.css to hide it:
Code: Select all
.NAME_OF_THE_SUFFIX .gk-logo-wrap {
display: none;
}
User avatar
Moderator

GK User
Sat Aug 29, 2015 8:22 pm
Hi,
I have read the documentation provided, but the problem persists because it seems that the itemId REQUIRED by the rule is a Menu Item.

A rule defined with a K2 Itemid doesn't work (no class included in the item page body tag).

Any other suggestion?.

Regards...Antonio
User avatar
Junior Boarder

teitbite
Mon Aug 31, 2015 1:20 pm
Hi

Please send me an access to joomla panel so I'll just make it for You.
User avatar
Moderator

GK User
Wed Sep 02, 2015 10:37 am
Hi,
I have sent you the access info requested through a private message.
Regards...Antonio
User avatar
Junior Boarder

teitbite
Sat Sep 05, 2015 1:06 pm
Hi

399 is an ID of an article, not a page. The closest to this article is it's category page with ID 1411.

Additionally this page had one suffix already, so a correct way to do it is to add a rule like this:

Code: Select all
ItemID 1411 no-full-width hide-toplogo
User avatar
Moderator

GK User
Sat Sep 05, 2015 3:16 pm
Hi,

You confirm what I try to explain in my previous post the logo or suffixes rules based on IDs applies only to Menu items ids.
So to remove the top-logo for a single k2 item I should link it to a "active" menu item (not an option).
Implementing as a new feature the option+Item ID (I.e.: com_k2+399) rule selection criteria would be very useful.
Thanks for your support....Antonio
User avatar
Junior Boarder

teitbite
Wed Sep 09, 2015 6:39 pm
Hi

Ok. That would be hard since K2 can use IDs on url and can also be configured not to use it. Anyway code for that option had to be implemented in K2 item layout override. In the matter of fact You can use a small trick and add the class hidding the logo to the content of an article :) Just change mode to HTML and paste this at any point of article:

Code: Select all
<style type="text/css">
.gk-logo-wrap {
display: none;
}
</style>
User avatar
Moderator


cron