- This topic has 15 replies, 3 voices, and was last updated 4 years, 1 month ago by David.
-
AuthorPosts
-
February 21, 2020 at 10:53 am #1172938William
Hi there,
I would like my category pages to follow a format, similar to what you can see here: https://www.litcharts.com/lit/1984
I am able to add content from editing the category in WordPress. However, with GP Premium, I am unsure how to gain the same look, both mobile/desktop version.
Kind regards,
Will
February 21, 2020 at 5:04 pm #1173141TomLead DeveloperLead DeveloperHi there,
Which part do you need help with? Displaying your posts as a title and excerpt only?
Let me know ๐
February 22, 2020 at 1:30 am #1173317WilliamHaving some customizable content above and below the post titles and excerpts too, but having them look similar to how they look on the above litcharts link.
February 22, 2020 at 10:28 am #1173790TomLead DeveloperLead DeveloperI’m still not completely clear which aspects you’re wanting to copy. Screenshots would definitely help.
On that site, I see:
1. Category title and description, which you can currently do in GP.
2. A list of posts, which display the post title and a short excerpt. You can do this quite easily in GP, as well.
3. Some text below the posts. For this, you’d need to create a Hook Element: https://docs.generatepress.com/article/hooks-element-overview/
February 23, 2020 at 4:37 am #1174211WilliamHi there,
Thank you for this. 1) has worked. 2) has worked as well, but is there a way to change the colour scheme of the posts to something similar to this? https://www.litcharts.com/lit/1984As for 3) I think this would work. But, to my understanding, I would have to make a new hook for each category. Is there a way to have all of the content added in the Category description, then use shortcode to split it (so the articles appear similar to https://www.litcharts.com/lit/1984, inbetween content)?
Many thanks,
WillFebruary 23, 2020 at 6:00 pm #1174760TomLead DeveloperLead DeveloperHi there,
2. Have you checked out the color settings in “Customize > Colors > Content”? Specifically, the “Archive Content Title” option. You can find the Typography settings in “Customize > Typography > Headings”.
3. The category description is shown at the top, so it’s not possible to split between on top and bottom. I think adding them as separate hooks is your best bet.
February 24, 2020 at 1:55 am #1174948WilliamHi there,
Thank you for this – this customization only changes the title, not the whole area hover colour, or description hover colour – is this possible?
As for the hookers, I understand, but would that require having a new hook for each and every category added?February 24, 2020 at 9:32 am #1175483TomLead DeveloperLead DeveloperAh yes, that would require CSS. Can you link me to one of the pages we’re targeting?
That’s correct, each category would need a new hook if each category has different content to display. If a category is sharing content with another category, you can apply that hook to multiple categories.
February 24, 2020 at 3:10 pm #1175755WilliamHi there,
Okay, I’ll look into the hooks separately.As for the CSS, page on my website is http://bookanalysis.com/1984/ and I want it to look similar to https://www.litcharts.com/lit/1984 in terms of the look.
Kind regards,
Will
February 25, 2020 at 8:42 am #1176484TomLead DeveloperLead DeveloperGive this a shot:
.archive article:hover .inside-article { background: #ddecf7; }
February 25, 2020 at 8:52 am #1176502WilliamThat’ brilliant, thank you very much. The last things I hope are possible is:
– to make the whole inside.article a clickable link, instead of just the title
– have animation similar to https://www.litcharts.com/lit/1984, or a delay to the hover effectsFebruary 25, 2020 at 2:01 pm #1176773TomLead DeveloperLead DeveloperTry this:
.archive article a:before { content: ""; position: absolute; width: 100%; height: 100%; } .archive article { position: relative; } .archive article a { transition: color 500ms ease-in-out; }
February 26, 2020 at 3:07 am #1177161WilliamHi there,
Nearly perfect, thank you for this. The only things left is that:
– The side of the area and top are still not clickable – I would like the whole area that changes colour when hovering to be clickable.
– The ease in and out does not work for the background colour – is it possible to do it for this too?
Many thanks,
February 26, 2020 at 7:41 am #1177630DavidStaffCustomer SupportHi there,
1. Change this to include the extra two properties i have commented:
.archive article a:before { content: ""; position: absolute; left: 0; /* Add this */ top: 0; /* And this */ width: 100%; height: 100%; }
2. Use this instead of the background hover CSS provided here:
.archive article .inside-article { background-color: #fff; transition: background-color 500ms ease-in-out; } .archive article:hover .inside-article { background-color: #ddecf7; }
February 26, 2020 at 7:55 am #1177646WilliamAbsolutely amazing, you’re brilliant ๐
Thank you very much!
-
AuthorPosts
- You must be logged in to reply to this topic.