pkp / defaultManuscript

A clean, simple OJS 3 theme with a boxed layout that mimics a paper document.
GNU General Public License v3.0
23 stars 39 forks source link

Links to galleys buttons #17

Closed hyglac closed 5 years ago

hyglac commented 5 years ago

Hi! This is not an issue on this nice theme I'm using, but rather a request for help. Can you direct me on how to hide the link to galleys buttons showing on the TOCs of each issue? Thanks!

links to galleys

NateWr commented 5 years ago

Hi @hyglac,

Try the following CSS code:

.obj_issue_toc > .galleys {
  display: none;
}

You can save that to a .css file and upload it to Settings > Website > Journal Stylesheet.

NateWr commented 5 years ago

Sorry, @hyglac, I think I might have misunderstood your question. The CSS code above will hide full-issue galleys, but leave the article galleys in place. If you want to remove all galleys on the TOC, including article galleys, use the following CSS instead:

.obj_issue_toc .galleys {
  display: none;
}
hyglac commented 5 years ago

Thanks for your help, @NateWr. I tried both CSS methods, but they don't seem to work in my Journal Stylesheet. I cleared cache and refreshed my browsers. This is the journal I'm in charge of: http://www.asice.se/index.php/tep. Is there anything I'm missing? Perhaps the parent default theme is not being overridden?

Thanks for you theme; it's fantastic.

NateWr commented 5 years ago

Sorry, I got one the selectors wrong. Try this:

.obj_issue_toc .galleys_links {
  display: none;
}
hyglac commented 5 years ago

It works! Thank you so much @NateWr . Learning new things every day!