-
AuthorPosts
-
March 5, 2021 at 2:09 pm #1285737
Hi mai,
Please see the screenshot in private content.
If you check via web inspector, and see Elements, you would see this code is not showing:#portfolio-category-description > div { text-align: center; padding: 0 20px 20px; color: #999; }
Also the description seems to be empty.
Best regards,
NikkoMarch 6, 2021 at 8:05 am #1285998Hi Nikko,
That’s correct – as long as this does not look “nice” I have deleted the category descriptions.March 8, 2021 at 5:27 am #1286285Hi mai,
I see, can you give us a screenshot of how the code I gave will look on your end (so we can assess if it’s cached or not) then give us a mockup of how you want it to look so we can give you some CSS code that should help achieve that design.
Best regards,
NikkoMay 15, 2021 at 5:57 pm #1300495Hi Nikko,
I need to apologize for the delayed answer!!!
In the private content I have included a download link with the following files:
1) a mockup with what I thought might look nice
2) how currently the reality does look like (whereby I have deleted any description in the categories after creating this file as I do not really like the current design…)
3) settings in the category description which I used for creating #2
Thank you!!!!!May 18, 2021 at 11:31 am #1300948Hi mai,
No worries, I believe the output of the code given before is near to the desired output, except it’s more narrow and centered.
I believe this is the only code left to add in Quick CSS (you may need to adjust the values like the max-width):#portfolio-category-description { width: 80%; max-width: 800px; margin: 0 auto 20px; text-align: center; }
Best regards,
NikkoMay 18, 2021 at 8:32 pm #1301071Hi Nikko,
Thanks for your prompt reply and the new code! But it is not just the alignement and the font size. It is also the the font color and the line breaks as well as format e.g. for underlined text. Just saw that it seems that WordPress deleted </p>, </br> and <u> from the category description. I had included that in order to check what is done by WordPress and what is not.
ThanksMay 19, 2021 at 4:46 am #1301101Hi mai,
I believe that you would need to use Advanced Custom Fields or similar plugin for that type of functionality in the backend. This would also require you to change some codes I gave in php.
Best regards,
NikkoMay 19, 2021 at 6:34 am #1301125Understood – thanks
May 19, 2021 at 6:47 am #1301133Hi mai,
You’re welcome :)
We’ll keep this thread so you can post here if you need further assistance on this topic.Best regards,
Nikko -
AuthorPosts
- You must be logged in to reply to this topic.