Customize galley_link class

Hi!
I would like to customize the galley_link class, in ul li list.
I would like to insert this code

li:nth-of-type(1n+2) {
display:none;
}

To hide every item after the first. I try to change less fine in plugins/themes/default/styles/objects/ but without reslut.

Someone can help me?

Many thanks

Hi @Riccardi,

I presume you’re asking about OJS. What version are you using? (Please include this information in your posts.)

Regards,
Alec Smecher
Public Knowledge Project Team

Hi Asmecher,
yes, I’m talking about OJS. My version is 3.0.2.0

Many thanks!

Maybe simply remove link in template?

1 Like

Hi @Riccardi,

If you want to accomplish this with CSS, I’d suggest uploading a custom CSS snippet to your Appearance form rather than editing the built-in styles. You may also have to patch Custom uploaded CSS files get loaded too early · Issue #2266 · pkp/pkp-lib · GitHub in order to get CSS files to load in the right order.

Note that the files will of course still be accessible, and may e.g. be crawled by Google, even with the CSS you describe in place. If that’s not what you want, you may want to consider a non-CSS approach.

Regards,
Alec Smecher
Public Knowledge Project Team

1 Like