Code Amp
Forum Replies Created
-
Forum: Reviews
In reply to: [Custom Layouts - Post + Product grids made easy] Great pluginThanks for the kind words @dulleca !
Yup, being lightweight and fast are one of the core components of this plugin and will continue to strive to be as quick as possible.
Forum: Plugins
In reply to: [Custom Layouts - Post + Product grids made easy] Change font size on mobileHey @dulleca
Thanks for the request – this (amongst other responsive controls) has been on my mind for a while.
I’ve intentionally not done too much work on the responsive controls and options, because I don’t want to deviate too much from the Gutenberg implementation (that is still in progress).
I did think about all this about a year ago, and there were some open tickets related to responsive controls, but it looks like they still haven’t been finalised so we can’t re-use those ideas / stay in sync with gutenberg:
https://github.com/WordPress/gutenberg/issues/19909
https://github.com/WordPress/gutenberg/issues/13363It would make sense to roll this out to tons of of other options such as spacing, borders, and fonts as you mentioned.
I will have to think about this some more, perhaps we just need to go with with it, and re-assess when something has been formalised within Gutenberg itself.
Thanks
- This reply was modified 4 years ago by Code Amp.
Hi all
I will be double checking this week and update with a fix once I can recreate – I may come back here to ask additional info to help me get to the bottom of the issue.
Thanks
Hey @emgb_520
So to update, not great news unfortunately – we couldn’t get the other code we had written working with Custom Layouts (which we were hoping to use, to save time).
We need to make some changes to this plugin to even enable a “hacky” workaround.
This needs a good bit more time to figure out and some planning – something I’ll need to do myself – however I’m officially away from tomorrow for a couple of weeks.
After that, it will be a case of prioritising our workload – and I’m afraid I can’t guarantee a swift turnaround on this one…
Sorry the news is not better right now – a full implementation of this feature has been added to the roadmap.
Thanks
~ RossThanks for letting me know!
Great work!
In fact, I realised, we don’t add the taxonomy class.
I looked at the source code of your site, and assumed we did π€¦ββοΈ
So really, you fixed it yourself.
It would be good to add this functionality to our plugin too though, so I’m putting on the feature requests π
All the best
We’ve found some code we’ve written for the Elementor posts widget so we’re just trying to repurpose that.
As this is a bit of custom coding its got pushed below a few other priorities for our support team but we’ll hopefully provide a solution today / tomorrow.
Thanks
Hey @hugaen
Thanks for opening a ticket.
Can you tell me some more details.
– What post type is set in custom layouts?
– With categories, are these the default categories that come with wordpress? (ie, not a custom taxonomy you created)
– Can you show me a screenshot of what it looks like when you try to choose a category?Thanks
Hey ClΓ©ment
Right now our CSS is a bit heavy handed (should be easier to override) and we’ll be changing that in future.
However, an easy way to get around this would be to first unset the background color for your taxonomy terms in your template.
Then you can use CSS like:
.cl-element-taxonomy__term.recents { background-color: #f00; }If you check the source code (I think you probably already did), all your taxonomy terms get their own class added.
So you can also have:
.cl-element-taxonomy__term.en-cours { background-color: #0f0; }Let me know if setting the background to transparent works for you, if not, I’ll be able to find some other CSS that does the job.
Thanks
Hey @rajbhilawekar
Thanks for your feedback. We also took a look at Blocksy and what you have found is correct.
There is one alternative to get this working, which would be to download the Blocksy child theme, and then you can modify the archive template file directly. You can find the link to the child theme in your dashboard:
https://snipboard.io/kefnLS.jpgIf you went this route, then you would need to learn a bit about the WP template hierarchy, and which file in your theme corresponds to the archive (and then you would need to add our shortcode to it). A bit more info about that here:
https://developer.ww.wp.xz.cn/themes/basics/template-hierarchy/That might not be easy / straight forward though…
All the best
Hey @emgb_520 thanks for sharing again – a colleague had a look at this and supplied this code using CSS Grid:
.cl-element.cl-element-section.cl-element--instance-1007 { display: grid; grid-template-columns: repeat(3, 1fr); } .cl-element.cl-element-taxonomy.cl-element--instance-1001 { grid-column:1/2; } .cl-element.cl-element-custom_field.cl-element--instance-1002 { grid-column:2/3; } .cl-element.cl-element-modified_date.cl-element--instance-1003 { grid-column:3/4; } h3.cl-element.cl-element-title.cl-element--instance-1004 { grid-column:1/4; } .cl-element.cl-element-custom_field.cl-element--instance-1005 { grid-column:1/4; } @media only screen and (max-width: 959px){ .cl-element.cl-element-section.cl-element--instance-1007 { display: block; } }It even works on mobile!
Let us know how you get on.
Thanks
- This reply was modified 4 years, 1 month ago by Code Amp.
Hey @emgb_520 it looks like the link was removed from your reply?
Thanks
Just to let you know I’ll be looking at this tomorrow.
Thanks
Ah I see here , it looks like your post type archive screen:
So what I would do is, delete the cards in the page, and replace it with your custom layouts shortcode, something like:
[custom-layout id='123']Where
123is the ID of your custom layout (you can find this shortcode on the right bar of the layout editor.Hey @rajbhilawekar
Usually editing the post type archive is done in one of 3 (or more) ways:
1. In traditional themes, this might have been modifying the
archive.phpfile or similar in your child theme
2. In FSE, you can edit this screen simply by editing archives
3. Other themes + builders and have their own of editing a post type archiveWhat you will have to do, is find the “blocksy” way of editing you CPT archive page.
Once you do that, you can add our custom layouts shortcode to the page, to replace the blocksy layout.
I’ll see if we can have a look at Blocksy over the next week, but its probably worth reaching out to them, and asking “How can I edit this CPT archive layout”
FYI – Custom Layouts is not fully FSE ready (about 80% of the way there) but should work in most environments + setups with a bit of tweaking.
Thanks