Add-listing Template
This topic contains 8 replies, has 3 voices, and was last updated by Simon 5 years ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: add-listing addlisting
-
AuthorPosts
-
April 6, 2020 at 6:36 pm #538758
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
SimonApril 7, 2020 at 3:07 am #538808Hello,
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.
April 7, 2020 at 9:54 am #538876Great,
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
April 7, 2020 at 11:59 am #538915ok 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”) ;
}April 7, 2020 at 12:46 pm #538922Hi 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
NaveenApril 7, 2020 at 2:06 pm #538940Awesome, thanks Naveen. I’ll just adjust nth numbers once it updates so it keeps looking the same.
April 7, 2020 at 2:12 pm #538942Hi 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.
April 7, 2020 at 4:32 pm #538971Hi 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
April 7, 2020 at 10:20 pm #539025Hi 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!
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket