Archived topic
Different text in blue box for each page
46 replies · Started by Karen on August 31, 2022
Cool. Here it is. Also, simple question, where do I add line height for post content and between elements (title, separator, text)?
There are two blue boxes in Elements. It's the Promises Blue Box - Dynamic Content - Query Loop one.
check now - i just updated the Query parameter to Order By -> Random. Maybe a browser cookie needs clearing ?
Weird, cool, what did you do or did you just clear cookies? Thanks!
- It's working. Try the homepage. It's the one on the bottom, directly above the footer. I tested it by refreshing and the formatting isn't sticking to any except the original one? See screenshot: https://www.dropbox.com/s/e8hhoqrzloft0pb/query.jpg?dl=0 (formatting is gone for post content)? Can you explain?
- Also, simple question, where do I add line height for post content and between elements (title, separator, text)?
Hi Karen,
1. Can you try clearing all caching mechanisms you have? If that doesn't work, can you try using a Dynamic Content Block instead?: https://docs.generatepress.com/article/dynamic-blocks/
2. You may try modifying the separating space in Appearance > Customize > Layout > Container: https://docs.generatepress.com/article/separating-space/
Thanks, I'll try that tomorrow when I'm back at my desk.
For the line height link you sent, they seems to be for between elements. I also need it between lines of text for the post content. These simple things seem so hard.
I see. Are you referring to Paragraph texts?
If so, in the Typography Manage, you can try adding a rule with target element custom- p. Then set the line-height to your preference.
You can also set the target element to body for a more general setting.
Thanks for your help. This is getting waaaaay too complicated! I can't even center the dynamic content. Can you go in and fix this so that each Promises CPT is showing up randomly and then test it (keep refreshing it) on the homepage? It's the bottom blue box.
And if you could see if you can please also add spacing between the lines of post content to give it breathing room with whatever block you use, that would be great.
I implemented my recommendation for your Query Loop.
I didn't remove your previous Block in case you still need it. See: https://share.getcloudapp.com/7KukRA7k
Change the typography settings of the Container Block to change the typography of the text.
As for the spacing, try changing it here: https://share.getcloudapp.com/GGuzNEqx
Thanks very much. But did you see how the post comment is duplicating (displaying it twice)? Did you test the homepage to see? That's what was happening when I tried the dynamic content block.
Try to edit the Front Page itself, at the bottom, there's a copy of your Element there.
Right. There are two blue boxes there. The one that's right on the homepage, it's the one that looks great. The one that's generated by the element is duplicating the post content. See the homepage - the box created by the element is duplicating the post content.
I can't grab a screenshot from my phone right now. If the text were "Fernando is helping me with the promises blue box." It's displaying that twice.
Here's an image: https://www.dropbox.com/s/37re4puaeq7oic5/home-query.jpg?dl=0. Can you please advise?
Scratch the last two comments. I just got a chance to get into the backend (I was on my phone before). I didn't realize you hadn't deleted the post content. I just deleted it. It's looking correct now. Thanks!
About styling: I don't want to change anything site wide with the customizer. Trying to just style the dynamic content but don't see how. See how the one above it on homepage is bold? https://www.dropbox.com/s/kal3ni61mxny4ix/no-bold.jpg?dl=0
OMG, I figured it out.
Sorry, in case you didn't see my edit above: I figured it out.