Simon
Forum Replies Created
-
AuthorPosts
-
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!
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.
Awesome, thanks Naveen. I’ll just adjust nth numbers once it updates so it keeps looking the same.
April 7, 2020 at 12:01 pm in reply to: Excerpt in Invoice module not editible – and package decription not showing #538917Thanks alex, no worries. Have got the package layout looking nice now with css (in other post). But thanks for confirming. Saves me time looking.
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”) ;
}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
March 27, 2020 at 8:47 pm in reply to: Archive Item Template – using image for background image in CSS #537160Hi Naveen, you’re a bloody legend mate. That did the trick and we can do a LOT from there. Thanks!
March 25, 2020 at 10:06 pm in reply to: Archive Item Template – using image for background image in CSS #536815Hi Naveen,
Sorry only just got to this becuase of everything going mad here for working from home it support. This may work for pages, but for the listings it is only adding the css to the head of the page the listing is on, so unfortunately it isnt pulling the main image for each listing.
But thanks anyway!
SimonMarch 19, 2020 at 9:56 am in reply to: Archive Item Template – using image for background image in CSS #535701Awesome! Thanks Naveen. I’ll try that now. Sorry about the delay, has been a mad time here for a while. But looking forward to trying it now. thanks again for your help. Appreciated!
February 27, 2020 at 10:21 am in reply to: Archive Item Template – using image for background image in CSS #532555Great thanks,
Meanwhile, just to play.
I am going to uncheck the “Disable theme feature image output?” in gen ‘gd-settings-design’ and see if I can just use a simlar method to including featured image in post loop type of thing.February 27, 2020 at 10:01 am in reply to: Archive Item Template – using image for background image in CSS #532550Hi, thank you for quick replies.
Sorry, that sounded clear in my head at 3am. But after reading….no not at all.A basic reproduction of what we are doing is this.
<style>
.int-div-prac {
padding:10px 5px;
background-image: url(“THE-LISTING-MAIN-IMAGE-HERE”);
background-repeat: none;
background-size: cover;
}
</style><div class=”int-div-prac”>
[gd_post_title tag=’h2′]
[gd_categories post_type=”gd_place” title_tag=”h4″ hide_empty=”1″ hide_count=”1″ sort_by=”az” max_level=”0″ max_count=”1″ max_count_child=”0″]
[gd_post_meta key=’phone’ location=’listing’]
[gd_post_address show=”icon-label-value” address_template=”%%street%%, %%city%%”]
</div>So the Archive Item Template will show the g_post_title etc within a div that we are using the main (or featured) as a background. I have left all styling of item (and most items) positions etc etc off to focus on the bit I need.
Thanks
Excellent! Thanks! This is our first look at the V2. All others in the V1 – just getting head around them before we upgrade. Thanks Alex!
Last quick one, is there a way to call a different layout (template) for different gd_listing type. For instance, I would like a different layout for events. Where all we want to show is image, name, date, location. I can change the template in child theme & duplicate it. But cannot see a way to differentiate which one is used.
I have searched through forums and fairly sure the answer is you can’t. But thought I would ask in case I am missing something. Currently my thoughts are to add everything I need for each layout into the one file then just manipulate/hide with css.
Thanks
That did it! Dont know how that got in there.I must have hit it when using the shortcode builder. Thanks!
Was literally just thinking about this. Would be perfect solution for us. We are setting up region guide in Tuscany, but we would like to map a city guide to a part of the region and show those results. So when someone visits the city guide. Only places in that city show up. BUT we want them all to show up on the region guide (forgetting the SE mess/probably sort with conicals). I was more thinking mapped domain then restricting the places through URI being used. If visitor is on X domain then only show regions 1,23,12 etc) Again customisation, but just thinking about it right now. Maybe we don’t need multi-site actually, but multi-site would be good.
Will be following this. Nice 🙂
-
AuthorPosts