Code Amp
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Issue with Search & FilterAh ok great! Glad that’s working for you 🙂
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Margin and paddingDo you have a link I could look at?
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Issue with Search & FilterHey @taeinkyun
That’s a shame, we did do an update that should fix this.
Can you open another ticket via S&F and mention to speak to “Ross” (me) ?
Then I can have a look at your site to see what we can do to fix it – on ww.wp.xz.cn we are not allowed to ask for logins etc.
Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Google fontsHey @oaz
Sorry for the delay.
In regards to the Google fonts, do you already have them added to you site?
If so, we could probably achieve this with some custom CSS.
Regarding the minimum height, as I can’t see the issue (I assume your removed our plugin from your link) I would suggest using custom CSS on the card to set it, something like:
.cl-template { min-height: 500px; }To change the space taken up by the image, I would suggest using an aspect ratio to control the space that is taken:
https://snipboard.io/Tlptxd.jpgLet me know how you get on.
Thanks
Hey @dande82
Do you mean the spacing all down the left and right side of a layout?
For now you’ll have to use some custom CSS to achieve it:
.cl-layout { margin-left: -50px; margin-right: -50px; overflow: hidden; }Change the 50px value to match the padding size you have set.
Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Margin and paddingWe’re looking to add a fix for this, but for now you could add this custom CSS to remove the gaps at the side:
.cl-layout { margin-left: -50px; margin-right: -50px; overflow: hidden; }Let me know if that works for you?
Thanks
Hey @emgb_520
It’s not going to be possible to achieve through our plugin UI without us writing a specific integration for Yoast and the way they handle primary categories.
You could filter the output of our element, and essentially regenerate this yourself in the desired order, but that’s going to take some coding:
https://customlayouts.com/documentation/action-filter-reference/The filter you would need is ‘custom-layouts/element/render_output’.
I’m afraid the news is not more positive at the moment.Best
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Featured ImagesHey Jens
Currently the image would need to be set as the featured image.
However I did find some code which automatically sets the featured image based on images in the post content:
https://www.gavick.com/blog/wordpress-automatically-set-post-featured-imageIt does sound like a good idea to add an option for the featured image to fallback to a post content images (I’ll put this on the feature requests).
I hope that helps!
Hey @andreasja
Not sure how this one slipped through – I’ll add this to the feature requests so we can add functionality for this at some stage.
We’ll need to add those attributes to our UI.
Thanks
Great stuff, glad that worked out for you!
Hey @emgb_520
I’ve just done some research but I don’t think there is such a feature built in to WP (please direct me if I’m wrong)
I can see that some SEO tools add a feature like this.
However, there might be a solution that would work for you…
You could try using a taxonomy ordering plugin like this: https://ww.wp.xz.cn/plugins/custom-taxonomy-order-ne/#:~:text=Custom%20Taxonomy%20Order%20is%20a,No%20custom%20coding%20needed.
(untested)
Then make sure you only order your categories.
After this you can try ordering your taxonomy terms (in Custom Layouts) by the
term order:
https://snipboard.io/idtIgK.jpgI’m not 100% this will work as I haven’t tried it, but as long that plugin (or others) use the built in WordPress “term order” setting, then I would expect this to work.
Let me know how you get on!
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] background imageHey @savantking99
Can you show me a screenshot of what this looks like?
I imagine it would just be a disabled box, but we don’t have any functionality to disable this feature at all (so I can’t imagine how that happened).
Can you also check the JS console for any errors and let me know what you see?
Here are instuctions for opening the console in Chrome:
– https://ww.wp.xz.cn/support/article/using-your-browser-to-diagnose-javascript-errors/#chromeThanks
- This reply was modified 3 years, 11 months ago by Code Amp.
Hey @emgb_520
I have attempted to provide a full solution here:
https://ww.wp.xz.cn/support/topic/question-about-template-editing/page/2/#post-15744049The main thing, is you would need to add
height: fit-content;to the.cl-element.cl-element-section.cl-element--instance-1007class.Thanks
Hey @emgb_520
Just to let you know we can’t always provide support for custom CSS (we do it usually when we have a bit of spare time, but these days is lacking!)
To get the top row of items closer together you could try swapping this code:
.cl-element.cl-element-section.cl-element--instance-1007 { display: grid; grid-template-columns: repeat(3, 1fr); }For:
.cl-element.cl-element-section.cl-element--instance-1007 { display: grid; }However, we’re kindof stuck with CSS grid for some of these items (which is why the spacing can be off) and I see in your other ticket you want some of the items to be closer together.
The previous code supplied by a colleague of mine, and uses CSS grid (something I don’t have a lot of experience with).
I would take a different approach instead using flexbox, so the overall CSS code should look like (remove the code we supplied before):
.cl-element.cl-element-section.cl-element--instance-1007 { display: flex; flex-direction: row; flex-wrap: wrap; height: fit-content; } .cl-element.cl-element-taxonomy.cl-element--instance-1001 { width: 15%; } .cl-element.cl-element-custom_field.cl-element--instance-1002 { width: 15%; } .cl-element.cl-element-modified_date.cl-element--instance-1003 { width: 15%; } h3.cl-element.cl-element-title.cl-element--instance-1004 { width: 100%; } .cl-element.cl-element-custom_field.cl-element--instance-1005 { width: 100%; } @media only screen and (max-width: 959px){ .cl-element.cl-element-section.cl-element--instance-1007 { display: block; } }Those lines with the
width: 15%;represent the first 3 items that you wanted stacked together in one row.. these 3:.cl-element.cl-element-taxonomy.cl-element--instance-1001 { width: 15%; } .cl-element.cl-element-custom_field.cl-element--instance-1002 { width: 15%; } .cl-element.cl-element-modified_date.cl-element--instance-1003 { width: 15%; }You could actually remove the width, and just add a margin to control their spacing:
.cl-element.cl-element-taxonomy.cl-element--instance-1001 { margin-right: 20px; } .cl-element.cl-element-custom_field.cl-element--instance-1002 { margin-right: 20px; } .cl-element.cl-element-modified_date.cl-element--instance-1003 { margin-right: 20px; }I hope that helps!
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] ColumnsHey @preux
Columns and rows are planned for our next major update, but that won’t be for a little while yet I’m afraid.
Lots to do before we even get started on that, but there is a big update coming later this year that will include these.
For now you would have to write custom CSS to achieve this level of styling I’m afraid.
This is on the todo list.
Thanks