- This topic has 9 replies, 2 voices, and was last updated 3 months, 2 weeks ago by Sebastian.
Author | Posts |
---|---|
Martin_1
May 8, 2024 at 6:49 pm
|
Hi, Is there a way on this page (work in progress) https://www.albruna-testplatform.com/nard/kunstwerken/ to put the title “een selectie” below the filter? So flip these around? Greetings from, Martin |
Sebastian
May 9, 2024 at 12:22 pm
|
Hey Martin, This isn’t straight forward because the title would need to be added to the same container element as the filter in order to adjust the ordering using CSS grid or flexbox properties. If you want some JavaScript code that does that, which you can paste into MT here it is:
Once you’ve added that, target the .fusion-grid-archive element with Microthemer and use the CSS grid controls to move the 2nd filter element to the top. I hope that helps! Cheers, |
Martin_1
May 9, 2024 at 1:28 pm
|
Okay, it’s more complicated than I had hoped for I see :-D. I was more thinking in line of floating the title below the filter and if needed just moving the filter up a bit (to create some spacing). |
Sebastian
May 9, 2024 at 7:21 pm
|
There are CSS adjustments you could make, like float, position or negative margins. But in my experience, it often leads to responsive styling issues on mobile that become complex and time consuming to resolve. So moving the HTML is my preferred approach. And in this case, one option is to use JavaScript to move the element once the page loads, seeing as you can’t edit the HTML directly. Cheers, |
Martin_1
May 13, 2024 at 11:58 am
|
Hi Sebastian, I will use your code. But I am not entirely sure how to add it to MT. I had a look at the help file but I think this section is a bit out of date https://themeover.com/how-to-add-custom-javascript-via-microthemer/ Could you help me out here? |
Sebastian
May 13, 2024 at 12:11 pm
|
Yep, that one is a bit out of date. This one is more recent: https://themeover.com/copy-codepen-html-css-js-to-wordpress/ Let me know if you need further assistance. Thanks, |
Martin_1
May 28, 2024 at 12:07 pm
|
Hi Sebastian, I have placed the javascript in the correct place but am a bit stuck in moving the “A Selection” bit below the filter “All Landscape Myths Old Masters Portraits Still life” The “A Selection” part needs to go in between the filter and the images. I tried targeting what you suggested .fusion-grid-archive but that targets everything (so filter AND images) and using the grid make no sense to me and I tried targeting .fusion-filters (which only tragets the filters) but am not entirely sure how to swith it’s place with the “A Selection” part. |
Sebastian
May 30, 2024 at 7:40 am
|
Hey Martin, Apologies for the slow reply, I’m currently on holiday in Wales. I see that the original link you provided is now displaying a 404 page. Could you send me an updated link so I can see what’s going on and advise you further? Thanks, |
Martin_1
May 30, 2024 at 2:48 pm
|
Hey sebastian, Go and enjoy your holliday :-). I redid the whole page and removed the part that needed to be flipped around. So in that regards there is no longer an issue. I do appreciate you helping and even taking time from your vacation. Regards, Martin |
Sebastian
May 31, 2024 at 9:16 am
|
No problem Martin, and thanks for the update. If you need to return to this at any point in future feel free to post here. Cheers, |