Add-listing Template

This topic contains 8 replies, has 3 voices, and was last updated by  Simon 4 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #538758

    Simon
    Full Member
    Post count: 35

    Hi There,

    I am looking for a way to change the listing html on the “add listing page”. In version 1 they were divs with a different class on each div. Currently they are spans with the same class and a br between them all. I have looked in template folder and can’t see it in there.

    So if you could point me in the right direction that would be awesome.

    If need be I could do it by displaying none on BR and using nth-child(2) etc for the spans. But ideally would like to give them seperate classes and remove the BR from html (and also change span to div)

    Thanks
    Simon

    #538808

    Alex Rollin
    Moderator
    Post count: 27815

    Hello,

    it’s a good point you make and I will raise the point with the developers.

    In the meantime it would require a customization.

    https://wpgeodirectory.com/docs-v2/faq/customizing/

    I will ask the developers to check the topic, too.

    #538876

    Simon
    Full Member
    Post count: 35

    Great,

    Thanks alex. Customiszing page is where I went to check first for everything. But thanks for linked, weirdly hadn’t book marked it, just kept searching lol.

    It’s not such an issue though so no rush for dev team. I can overwrite it with css for now. using nth child (will post here for others once done). But it really adds to the signup design.

    Thanks again for responding so fast

    #538915

    Simon
    Full Member
    Post count: 35

    ok here is the final css I used. I am sure there is a more elegant way to achieve it, but it works. the “finalview” image is what it produces.

    *side note. Learnt that :nth-child includes all the elements so it was counting the BR even though was set to span:nth-child. Strange. which is why ther are numbered 1,3,5,7,9

    /* === Begin add listing package CSS === */
    #package_id_row label:first-child {float:none;text-align:center; width:100%;font-weight:600;font-size:20px;display:block;}

    /* control div around radio group */
    #package_id_row div {float:none !important;width:96% !important;padding:15px 2%;margin:10px auto;border:1px solid #cccccc;position:relative;}
    #package_id_row div br {display:none;}

    #package_id_row div span.gd-radios {vertical-align:top;width:30%;margin:10px 1%;padding:10px 1%;text-align:center;display:inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position:center top;
    background-size:40px;}
    #package_id_row input.gd-checkbox {width:20px;height:20px;padding:40px;float:none;display:block;margin:0 auto;}
    /* child elements for packages */
    #package_id_row div span.gd-radios:first-child {
    color:#64a410;
    border:2px solid #64a410;
    background-image: url(“/wp-content/uploads/2020/04/add-listing-green2.png”) ;
    }
    #package_id_row div span:nth-child(3),#package_id_row div span:nth-child(5) {
    color:#2495cd;
    border:2px solid #2495cd;
    background-image: url(“/wp-content/uploads/2020/04/add-listing-blue.png”) ;
    }
    #package_id_row div span:nth-child(7),#package_id_row div span:nth-child(9)
    {
    color:#a81683;
    border:2px solid #a81683;
    background-image: url(“/wp-content/uploads/2020/04/add-listing-purple.png”) ;
    }

    #538922

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Simon,

    Thanks for creating this issue.
    I have adjusted HTML of package listing and removed <br/> tag.
    It will be up in the upcoming version of the package manager addon.

    Regards
    Naveen

    #538940

    Simon
    Full Member
    Post count: 35

    Awesome, thanks Naveen. I’ll just adjust nth numbers once it updates so it keeps looking the same.

    #538942

    Simon
    Full Member
    Post count: 35

    Hi Naveen, I am sure you know/considered it, but thought I would mention it. Removing the <br> will make all the spans inline rather than stacked, so might break peoples sites if they rely on the br to create the line breaks. Either change to div or add display:block to the spans inline would stave off the issue.

    #538971

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Simon,

    I have added div container too.
    Please share your FTP if you want me to apply the patch on your site before addon release.

    Thanks

    #539025

    Simon
    Full Member
    Post count: 35

    Hi Naveen,

    Thats perfect thanks! The screenshot looks awesome. I’ll do the css now and put it up. Won’t break anything, its spot on. Great job!

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket