Problem with cards after publishing
Forum rules
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
IMPORTANT NOTE!!
DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.
PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901
MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Problem with cards after publishing
Hello everybody!
I have a problem with cards in the card container.
Everything looks good in the preview. However, if I publish the page, the cards overlap. Then if I refresh the page a couple of times, it shows up correctly.
Does anyone have any idea where the error is here?
Demoproject At the bottom of the project is the screenshot of the preview.
Thanks in advance
KIRK
I have a problem with cards in the card container.
Everything looks good in the preview. However, if I publish the page, the cards overlap. Then if I refresh the page a couple of times, it shows up correctly.
Does anyone have any idea where the error is here?
Demoproject At the bottom of the project is the screenshot of the preview.
Thanks in advance
KIRK
Re: Problem with cards after publishing
I do not see any problems in the project or generated code
- BaconFries
-
- Posts: 5621
- Joined: Thu Aug 16, 2007 7:32 pm
Re: Problem with cards after publishing
I did notice one thing that may or may not be the issue. In the source your index page is showing as index.js and not index.html Try doing the following
Go to Tools-> Options-> HTML and make sure in the Javascript section that "Move Javascripts to end of the page" is unchecked.
Go to Tools-> Options-> HTML and make sure in the Javascript section that "Move Javascripts to end of the page" is unchecked.
Re: Problem with cards after publishing
Thank you both for the quick replies.
Sorry, it's still overlapping for me.
Via the Demoproject link you can find what it looks like after publishing (two images at the end). Tested on several Windows 10 computers and several browsers (Edge, Chrome, FF). It seems to look fine on an iPad with Safari.
I checked the "Move Javascripts to end of the page" function. It is unschecked!
I must have a mistake in here somewhere.
Any idea!
Sorry, it's still overlapping for me.
Via the Demoproject link you can find what it looks like after publishing (two images at the end). Tested on several Windows 10 computers and several browsers (Edge, Chrome, FF). It seems to look fine on an iPad with Safari.
I checked the "Move Javascripts to end of the page" function. It is unschecked!
I must have a mistake in here somewhere.
Any idea!
Re: Problem with cards after publishing
Did you also try with "Move Javascripts to end of the page" enabled?
Re: Problem with cards after publishing
Hello Pablo,
I have now "Move Javascripts to end of the page" enabled.
It seems to work now in the demo project. But unfortunately not in my final project.
Can this have anything to do with the gallery?
I have to try "Load built-in JavaScript files asyncronously" enabled.
Then the cards work, but the gallery no longer works.
Can you take a look at the final project there?
Project
I have now "Move Javascripts to end of the page" enabled.
It seems to work now in the demo project. But unfortunately not in my final project.
Can this have anything to do with the gallery?
I have to try "Load built-in JavaScript files asyncronously" enabled.
Then the cards work, but the gallery no longer works.
Can you take a look at the final project there?
Project
Last edited by KIRK on Tue Mar 23, 2021 3:04 pm, edited 1 time in total.
Re: Problem with cards after publishing
The link to your project does not work for me.
But I think it is related to the way masonry (which is a third party script) works. It has to do with timing. There are too many images so it will take to long for the script calculate the final sizes.
So, in this combination 'masonry' cannot be used.
But I think it is related to the way masonry (which is a third party script) works. It has to do with timing. There are too many images so it will take to long for the script calculate the final sizes.
So, in this combination 'masonry' cannot be used.
Re: Problem with cards after publishing
Does the link work now?
Do you mean masonry of the cards? There are six cards with one picture each. Or in combination with the gallery?
Do you mean masonry of the cards? There are six cards with one picture each. Or in combination with the gallery?
Re: Problem with cards after publishing
Hi Kirk
All work at your website, your links at cards don't work, you have to correct that, everything else works normally, both the gallery and the cards
All work at your website, your links at cards don't work, you have to correct that, everything else works normally, both the gallery and the cards
Re: Problem with cards after publishing
YesDo you mean masonry of the cards?
I was referring to all the images on the pages.
It takes some time to download and load these images. If this takes to long then the masonry script may not be able to determined the size of the cards, because the script does not know how long it needs to wait until everything is loaded.
That is why it works locally or with less images.
Re: Problem with cards after publishing
OK thanks. Then the "Masonry" option is not the right one here.
Do you have a tip on how I can get three cards in a row? So two rows with three cards and one row with the last (one) card.
In smaller views then two in a row and in the smartphone view one card.
Do you have a tip on how I can get three cards in a row? So two rows with three cards and one row with the last (one) card.
In smaller views then two in a row and in the smartphone view one card.
Last edited by KIRK on Tue Mar 23, 2021 7:30 pm, edited 1 time in total.
Re: Problem with cards after publishing
The option 'card columns' can be used to create columns.
The column property is responsive, so it can be different in breakpoints
The column property is responsive, so it can be different in breakpoints
Re: Problem with cards after publishing
I'm already trying it out. But there are always three images in the first row and then two rows with two images each.
I updated the link above using card columns:
Column count: 3
Column gap: 16
Position: floating
I updated the link above using card columns:
Column count: 3
Column gap: 16
Position: floating
Re: Problem with cards after publishing
Do you have a demo project, so I can see your settings?
Re: Problem with cards after publishing
Yes, but I do not need to complete project. Only a simple demo with one page and the cards.Do you mean a wbs file?
See also:
viewtopic.php?f=10&t=82134
Re: Problem with cards after publishing
Thanks for the project.
The behavior is correct. Columns go from top-to-bottom, left-to-right.
So, card1, card2, card3 are in the first column, card4, card5, card6 in the second column etc.
If you want different behavior then you can use a flex container. In that case, you have more control over the flex box properties.
For example, if you want 3 items per row then set the flex-basis to 33%
The behavior is correct. Columns go from top-to-bottom, left-to-right.
So, card1, card2, card3 are in the first column, card4, card5, card6 in the second column etc.
If you want different behavior then you can use a flex container. In that case, you have more control over the flex box properties.
For example, if you want 3 items per row then set the flex-basis to 33%
Re: Problem with cards after publishing
That's it!
This 33% flex-basis!
Big thanks Pablo!
This 33% flex-basis!
Big thanks Pablo!