Code Amp
Forum Replies Created
-
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Center results horizontallyHey @haiko00
Thanks for the kind words.
You bring up a good point, it would be nice to be able to choose this as an option in our admin area (I’m putting this on the todo list).
For now you could achieve this with following custom CSS:
.cl-layout { justify-content: center; }Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Use Google fontHey @haiko00
We’re working on getting our layouts to inherit fonts but for now you could do this with the following CSS:
.cl-template .cl-element, .cl-template .cl-element * { font-family: 'open-sans-woff-woff2',Helvetica,Arial,sans-serif; }To add custom CSS to your theme (enfold) you can follow the instructions here:
https://kriesi.at/documentation/enfold/add-custom-css/Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] How Do I Show All Posts?Hey @gretchen2d
I see you are a Search & Filter Pro user (we’re the same team) 🙂
I think you won’t see “posts per page” setting because you linked your custom layout to a search form.
In this case, you change this setting in your search form admin, the setting is in the
generaltab, and you can change this to-1to show all posts.If you have any more issues feel free to open a ticket in S&F Pro support for a faster response and so we can take a closer look.
Thanks
Hey @ventilator
Can you try heading to our
settingsadmin menu and clickrebuild CSS?If that doesn’t work, can you open a ticket with Search & Filter Pro support? (we’re the same team!)
That way we’ll be able to have a better look at your site and respond more quickly.
Thanks
I see you are using Search & Filter – can you open a ticket in pro support so we can access your site? We’re the same team 😀
From what I can remember, we should not support html in the title (so where you are inputing your data, should not have
<strong>or formatting at all).The only place bold should be added is in our template editor.
I might not have understood the setup in full, once we get your logins we’ll be able to have a better look and let you know.
Thanks
- This reply was modified 3 years, 7 months ago by Code Amp.
Hey @ventilator
Thanks for flagging this issue.
You could share your screenshots via an image upload service (and send us the links here)?
Possible options:
https://snipboard.io/
https://wetransfer.com/Alternatively, do you use twitter? You could send us a DM:
Tweets by wpcustomlayoutsThanks
I’m closing this for now as I didn’t hear back from you.
Feel free to re-open when you have more information.
Best
Hey @krosh just thought I’d check in on this and see if you had any more info on how to access this?
Thanks
Forum: Reviews
In reply to: [Custom Layouts - Post + Product grids made easy] Awesome pluginThanks for the kind words @cusconative
Hey @krosh
I can’t see our plugin on that page – can you share which page its on / how to find it?
Thanks
Hey @dande82 , we’ve just released 1.4.8 – which provides grid gap, margin, and padding controls (as well as background color).
Read more here – and you probably want to remove the custom CSS to fix this as it will conflict with our new settings!
Best
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Margin and paddingHey @xmarksthespot , we’ve just released 1.4.8 – which provides grid gap, margin, and padding controls (as well as background color).
Read more here – and you probably want to remove the custom CSS to fix this as it will conflict with our settings!
Best
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Feature images not showingHey @2wav
We had this issue come up months ago but it seemed to have resolved itself on a users site.
My guess is an error is being generated instead of showing the image.
Can you try enable WP_DEBUG and WP_DEBUG_LOG and check if there is an error being thrown there?
Not sure if anything from this ticket will help but Keryn did find a way to get the image to show (and which setting caused it to fail):
https://ww.wp.xz.cn/support/topic/featured-images-not-showing-34/#post-15261788Perhaps you can enable that in the meantime while we track down this issue?
FYI, I’m away until Monday next week (and will no doubt have a backlog of support to get back on top of) but will try to get back to you asap.
Thanks
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Featured Product?Hey @coldrealms65
Do you want make a query that only shows featured products?
I haven’t tried this before, but (if you are happy with some PHP coding) it might be possible.
The logic would be:
1. Edit the query using our
query_argsfilter here:
https://customlayouts.com/documentation/action-filter-reference/function layout_query_args( $query_args ) { // Add the code from SE here: // $query_args['tax_query'] = ... return $query_args; } add_filter( 'custom-layouts/layout/query_args', 'layout_query_args', 10 );2. Apply the logic from this SE answer:
https://stackoverflow.com/a/46247028/459359I think the only part you would need is the
tax_querypart. So you would add the tax_query to:$query_args['tax_query']in step (1) above.I hope that will work for you!
Best
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Make whole block clickableHey @cusconative
I’m afraid right now this is the way the plugin works.
We’re hoping to add functionality as you describe in the future (it still needs discussing), but its going to be a while away yet before we get around to it.
I’m not sure there is a code snippet / easy change that can be made to do this…
I think (maybe) the only way you could do it is if you disable all the links within your post template, and then add a link around it yourself via PHP.
We do have hooks for this kind of thing, but at this stage I’m not sure if what you’re trying would work (and you’d need some PHP experience to do this).
If you were to give it a go – I would suggest taking a look at the
render_outputfilter for templates (near the bottom of the page):
https://customlayouts.com/documentation/action-filter-reference/And try adjusting this code snippet:
function template_render_output( $output, $settings ) { // Modify the output $output = 'Before template content' . $output . 'After template content'; // Always return in WP filters return $output; } add_filter( 'custom-layouts/template/render_output', 'template_render_output', 10, 2 );You can probably (untested) get the current post information from the global post to generate the link:
global $post; echo $post->ID;I hope that helps!