The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
2 posters

    Threads in category smaller

    avatar
    Swamp Fox
    New Member


    Posts : 14
    Reputation : 1
    Language : English

    In progress Threads in category smaller

    Post by Swamp Fox March 4th 2015, 11:24 pm

    Hello! I was wondering if there was a way to make all the topics in a certain category smaller so that they don't take up so much room.

    Thanks
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Threads in category smaller

    Post by Ange Tuteur March 5th 2015, 9:51 am

    Hello @Swamp Fox,

    It can be possible by using CSS or JavaScript depending on what you want to do. Could you provide the following information ?

    • The URL of your forum
    • Do you want this applied to a specific forum, or all forums ? If a specific forum could you provide the URLs of these forums ?


    Thanks Smile
    avatar
    Swamp Fox
    New Member


    Posts : 14
    Reputation : 1
    Language : English

    In progress Re: Threads in category smaller

    Post by Swamp Fox March 5th 2015, 1:35 pm

    Hello thank you for the response. 

    http://usnp.nstars.org
    that is the link for the forum.

    I only want the topics on the National Parks category to be smaller , the one with them all listed out.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Threads in category smaller

    Post by Ange Tuteur March 6th 2015, 12:32 am

    Okay let's clarify before I do anything. When you say "topics" do you mean the topics-topics :
    Threads in category smaller Captu134

    or the forum list of this category :
    Threads in category smaller Screen14
    avatar
    Swamp Fox
    New Member


    Posts : 14
    Reputation : 1
    Language : English

    In progress Re: Threads in category smaller

    Post by Swamp Fox March 6th 2015, 12:53 am

    I mean the forum list sorry.
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    In progress Re: Threads in category smaller

    Post by Ange Tuteur March 6th 2015, 1:34 am

    If you're looking to reduce scrolling you can also hide the forum moderators.
    ( Administration Panel > Display > Structure and Hierarchy > Display forum moderators : no )

    For the forum go to Administration Panel > Modules > JavaScript codes management > Make sure JS code management is enabled then create a new script

    Placement : In the homepage
    Paste the following code and submit :
    Code:
    $(function(){
      $('.main-head', document.getElementById('main-content')).filter(function(){ return $(this).text().trim() === 'National Parks' }).next()[0].className += ' overflowable';
    });

    Then go to Display > Colors > CSS stylesheet and add the following rules to your sheet :
    Code:
    .main-content.overflowable {
      height:250px;
      overflow-y:auto;
    }

    .main-content.overflowable span.status {
      position:static !important;
      margin-right:10px !important;
    }
    avatar
    Swamp Fox
    New Member


    Posts : 14
    Reputation : 1
    Language : English

    In progress Re: Threads in category smaller

    Post by Swamp Fox March 6th 2015, 2:11 pm

    Thanks so much!

      Current date/time is September 23rd 2024, 9:19 pm