test
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Ninja Lead Moderator
    #999104

    Hi,

    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

    infomathmods Friend
    #999229

    Thank 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 Moderator
    #999366

    Hi,

    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

    infomathmods Friend
    #999478

    Thank 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"

    http://www.intermaths.eu/programme/structure

    Ninja Lead Moderator
    #999489

    Hi,

    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

    infomathmods Friend
    #999547

    I’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

Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  infomathmods 7 years, 11 months ago.

The topic ‘Can't hide intro text in category blogs’ is closed to new replies.