This topic has 11 replies, 3 voices, and was last updated 9 years by Radu.

  • Author
  • #147350
     vulkash
    Participant

    Hello i modified member-loop.php and set the code like this for get more colums :

    <div class=”three columns”>

    My problem is that i want set this modification in a specific page and not on every page so how can i do that ?

    Other similar question, i created a page called “my home” and i want modify the css without change other page.

    I tryed two things :

    “.directory.myhome” Β and “.directory.my-home” Β But isnt working πŸ™

    Can you help me ?

    thank you πŸ™‚

     

    #147388
     Laura
    Moderator

    Hello, what do you mean by specific page? The members loop is the members directory
    The page id wont be its name but the page number, check at google dev tools and you should see it at the very top
    or use .page-id-XXX ( xxx is the page id, you can see the page it by editing it and checking the browser url )

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #147431
     vulkash
    Participant

    Ok for google tool ill try thank you.

    Specific page mean a page in particulary for example :

    I have a member list on this page : http://www.lookingforpals.com/members/

    and another member list on this page : http://www.lookingforpals.com/my-home/

    Both use the member-loop.php. So i would like to set different numbers of colums for each pages but when i modify the member-loop.php that affect the both pages thats my problem, do you understand ? πŸ™‚

    #147626
     Laura
    Moderator

    Hello, you could create a new template based on the members-loop.php to use it at the other page. If you change the members-loop.php all pages that use it will also change, so you need to copy it and create a clone with another name and with your change πŸ™‚

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #147672
     vulkash
    Participant

    Okay but i guess there have some modifications to do for link this “clone” to this page :
    http://www.lookingforpals.com/my-home/

    I mean I have to add some code somewhere or the page will not find my clone so can you tell which file(s) i have to modify for that and which code i have to put inside ? πŸ™‚

    #147862
     Laura
    Moderator

    Hello, will assign the ticket to a higher support level who can help and advise you in your query.
    Thanks! ?

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #147889
     vulkash
    Participant

    okay thank you πŸ™‚

    #148088
     Radu
    Moderator

    Hi,

    Using this CSS you will have 4 columns on the member’s page only.

    COPY CODE
    
    .members div#members-list .four.columns {width: 25%;}
    .members #members-list .four.columns:nth-child(n+1) {clear:right !important;}
    

    If you have any other questions let me know
    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #148089
     Radu
    Moderator

    The homepage file template it’s located here : /wp-content/themes/sweetdate/page-templates/front-page.php

    Cheers
    R.

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #148667
     vulkash
    Participant

    thanks you ill try that πŸ™‚

    #148668
     vulkash
    Participant

    And if i want target with the “page-id” can i do that like that ?

    COPY CODE
    
    .page-id-1028 div#members-list .four.columns {width: 25%;}
    .page-id-1028 #members-list .four.columns:nth-child(n+1) {clear:right !important;}
    
    #148740
     Radu
    Moderator

    Hi,yes, if that page haves that ID yes

    Cheers
    R

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?