-
AuthorPosts
-
Ninja Lead Moderator
Ninja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 3, 2017 at 2:23 am #999104Hi,
You can use this way below
- Open templates/ja_platon/css/custom.css file and add new rule
section.article-intro p, section.article-intro table, section.article-intro .example-indicators, section.article-intro h4, section.article-intro h2 { display: none; } section.article-intro h2:first-child { display: block !important; }
Regards
January 3, 2017 at 11:33 am #999229Thank you.
When I add the code you’ve provided, the intro text is hidden. But if I set the intro text to be shown (menu edit, category blog, options > show intro text), the text is still hidden.What I would like to get is just being able to hide and show text depending on the option selected on that menu: when I add your code, the text is hidden no matter what I select in the Joomla menu
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2017 at 1:43 am #999366Hi,
You can control to hidden the intro text in category blog as my suggest below
-
Go to menu item and add the " hidden-text" into Page Class option: http://prntscr.com/dr8imj
- Open templates/ja_platon/css/custom.css file and add the CSS style below
.hidden-text section.article-intro p, .hidden-text section.article-intro table, .hidden-text section.article-intro .example-indicators, .hidden-text section.article-intro h4, .hidden-text section.article-intro h2 { display: none; } .hidden-text section.article-intro h2:first-child { display: block !important; }
Hope it helps
Regards
January 4, 2017 at 9:18 am #999478Thank you, but it doesn’t seem to work. I’ve added the custom code and set the page class, but the intro content is still shown in the category blog page… And there’s a new thing now: the leading article is only showing the content AFTER the "read more" command, hiding the actual "intro text"
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 4, 2017 at 9:49 am #999489Hi,
My solution only works with Category blog and not the detail page. You can see the intro text is working under the detail pages below
http://www.intermaths.eu/programme/structure/year2-laquila-interdisciplinary-mathematics http://www.intermaths.eu/programme/structure/scientific-computing
Regards
January 4, 2017 at 1:57 pm #999547I’m obviously talking about category blog view, definitely not article standard view.
Anyway, doesn’t matter, I’m going to find a different work-around, thanks for your suggestion -
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by infomathmods 7 years, 10 months ago.
The topic ‘Can't hide intro text in category blogs’ is closed to new replies.