Toggle "View" On/Off - Forum | JoomShaper
Solved Extensions

Toggle "View" On/Off

Asked by Michael Koerner 4 years ago Last activity 4 years ago

Hello:

I am using the SP Simple Portfolio and so far I am really enjoying it. However, there is one thing that is causing me some frustration...

Is there a way through coding that for certain portfolio items, I can toggle the "View" button off? There are some of my portfolio pieces that I explain why I did certain things in a particular piece and others that I'd like to just have the zoom feature.

Any help with this would be greatly appreciated

Thanks,
Michael

Accepted answer

Marked as the solution
Paul Frankowski Senior Staff

Hi Mike,

you can hide that button using more advanced CSS (with one .word more). It's still very easy, becuse each subpage in Joomla have unique class name in < body > class.

5 more replies

Ariba Staff

Hello

Thank you for your query. If you want to just have the Zoom feature, you can use Custom CSS to hide the View button.

.btn-view {display: none !important;}

Hope this helps you.

Michael Koerner Asked this

Hello Ariba:

Thank you for your response... However, I'm looking for something with a little more control. Is there a way to add this on an item by item basis? Some of my pieces will have them and others wont.

I'd even be willing to pay for this feature to be implememented if need be.

Thanks,
Michael

Michael Koerner Asked this

Hey Paul:

I really appreciate your input and you may be on to something here... Is there any chance you could please elaborate more? So would I assign the item its own class then add that to the previous class?

Thanks,
Michael

Michael Koerner Asked this

Hey Paul:

I was able to figure this out...

Thank you so much for your input as it at least put me on the right track.

I will leave my solution in this thread so that others that may come along can use it. It is below:

[href="/portfolio/5-target-acquired-store-poster"].btn-view {
    display: none !important;
}

Thanks again!

Michael

Michael Koerner Asked this

Hello Paul:

So I may have jumped a little too soon in thinking I solved this problem...

So with my method, it doesn't follow if I have another portfolio location somewhere else in my site.

Is there a way I can make this a little more simplified? I feel like this should be integrated with the extension.

Thanks,
Michael

Log in to reply.