
-
AuthorPosts
-
March 25, 2025 at 4:43 pm #1480146
About category page design…
1. The category background is white. I would like to assign a background colour and image.
2. The categories don”t have a strong intro. I need to add an H2 text category title at the top.
3. I need to add an optional category title image. individual categories would have either a unique title image or no title image.
How is this possible?
March 26, 2025 at 1:29 pm #14801994. This seems to be related: I need to add the same colour and background to the posts themselves. I can’t set posts to Advanced Editor because then the posts don’t display the full post content, one after the other on a page, so the posts must be Default Editor. How is the default Default Editor Post background set?
March 29, 2025 at 1:01 pm #1480436Hi,
Unfortunately, your site is not loading for me, frontend or backend, please check.Best regards,
MikeMarch 29, 2025 at 5:03 pm #1480457Please try now. The server seems to have had issues.
March 30, 2025 at 3:59 pm #1480480Hi,
1: what background color and image do you want to use?
2: the title is h2, what size do you want it to be?
3: you can add category images with the Categories Images pluginBest regards,
MikeMarch 30, 2025 at 8:36 pm #14804901. #f2f0eb Dandelion-post-background2.png (in the Media tab).
2. This is one of the category pages: /category/issue-1/. As with all the category pages, there is no category title at all. Only the posts within the category display. I need to add an H2 text category title at the top.
3. I tried the Categories Images plugin but it didn’t work, as images didn’t display on the category page.
4. Same colour and image as #1.April 2, 2025 at 10:51 pm #1480674Hi,
Your site seems to be down now, please check:
*deleted screenshot*
Best regards,
Mike-
This reply was modified 2 weeks, 1 day ago by
Mike. Reason: Deleted screenshot
April 3, 2025 at 3:25 pm #1480718Hm, I’m able to login successfully. Please try now. Please try again after an hour if the site is down temporarily.
April 4, 2025 at 9:22 pm #1480791Site still is up every time I check.
April 6, 2025 at 2:08 pm #1480872Hi,
Thanks for your patience for the category background image with “Dandelion-post-background2.png” you can use this css:.category .container_wrap_first { background: url(https://templeinacistg.wpenginepowered.com/wp-content/uploads/2025/03/Dandelion-post-background2.png) !important; background-size: contain !important; background-color: #f2f0eb !important; }
but this image has a white background so adding a background color to the page will not show, if the image had a transparent background the background color would show.
To show the title you need to enable Enfold Theme Options ▸ Header ▸ Header Layout ▸ Header Title and Breadcrumbs ▸ Display only title, I did this for you:
To add the same background image and color to the post you could use this css:.single .container_wrap_first { background: url(https://templeinacistg.wpenginepowered.com/wp-content/uploads/2025/03/Dandelion-post-background2.png) !important; background-size: contain !important; background-color: #f2f0eb !important; }
but you still need to use a tranpernt background image for the color to show.
Best regards,
MikeApril 7, 2025 at 4:04 pm #1480943Wonderful! Thank you, this is very helpful! Items 1 and 4 are solved—the backgrounds work perfectly with a tweak to the image file and adding a norepeat..
Items 2 and 3 remain issues.
2. The categories don”t have a strong intro. I need to add an H2 text category title at the top.
–> The Header Title should not display on all pages. Changing Enfold Theme Options ▸ Header ▸ Header Layout ▸ Header Title and Breadcrumbs ▸ Display only title, displays the title on all pages, which is not wanted. I need the Category title to display on the category page, and the styling needs to match the titles on the other pages (e.g., H2, no line above and below, not positioned so high up).3. I need to add an optional category title image. individual categories would have either a unique title image or no title image.
April 9, 2025 at 11:27 pm #1481104Hi,
I disabled your Enfold Theme Options ▸ Header ▸ Header Layout ▸ Header Title and Breadcrumbs ▸ Display only title and added this to your code to the end of your child theme functions.php file in Appearance ▸ Editor:add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 50, 1); function avf_header_setting_filter_mod($header_settings) { if (is_tax() || is_archive()) { $header_settings['header_title_bar'] = "title_bar"; } return $header_settings; }
to only show the title on your category pages.
and I added this css:.category .container_wrap_first { border: none; } .category .title_container { text-align: center; padding-top: 50px; background-color: #f2f0eb !important; } .category .title_container h1 a { font-weight: 600 !important; line-height: 1.3em; font-size: 30px; }
so compared to one of you posts:
your category title looks like this:
But note that they are both H1, I don’t see H2 like you asked.Best regards,
MikeApril 10, 2025 at 3:16 pm #1481137Thank you! The wording as it is now doesn’t make sense to the reader. Can we delete the “Archive for category:” text (or at least change it to “Issue:”?
To clarify, the “Issue 1 Title” text should be .extralargedisplayfont h2. The class is set in Custom CSS.
April 10, 2025 at 9:36 pm #1481155Hi,
The text below it is H2 “Poetry 5 Submission Title” are you sure that you want two H2 on the category page and no H1? It may affect your SEO.Best regards,
MikeApril 10, 2025 at 9:43 pm #1481156It can be H1, as long as it has all the styling of the .extralargedisplayfont class.
April 10, 2025 at 10:21 pm #1481160Hi,
I added this css:.category .title_container h1 a { font-size: 300%!important; line-height: 55px; font-family: "sacramento", cursive; font-weight: 400; }
and this code to your to the end of your child theme functions.php file in Appearance ▸ Editor:
function custom_script() { ?> <script> (function($){ $('#top.category .title_container h1.main-title.entry-title a').contents().filter(function() { return this.nodeType == 3 }).each(function(){ this.textContent = this.textContent.replace('Archive for category:',''); this.textContent = this.textContent.replace('Tag Archive for:',''); this.textContent = this.textContent.replace('Archive for:',''); }); })(jQuery); </script> <?php } add_action( 'wp_footer', 'custom_script', 99 );
the result now:
Please clear your browser cache and check.Best regards,
MikeApril 11, 2025 at 5:18 pm #1481199Thank you! This works! Item 3 is now resolved.
The only item unresolved is:
3. I need to add an optional category title image (e.g. 1500x1500px, centred). individual categories would have either a unique title image or no title image. I tried the Categories Images plugin but it didn’t work, as images didn’t display on the category page. Is there a way to display an optional category image under the category title?April 11, 2025 at 10:10 pm #1481207Hi,
You want a 1500x1500px image under the category title?
1500px height would basically be full screen height, right?
Do you want the image under the title or the title to be overlayed on the image?
This will not be so easy.Best regards,
MikeApril 14, 2025 at 9:56 pm #1481337Simpler please. The image just needs to fit the full width of the post content. The category title image sits below the category title and above the post content.
April 14, 2025 at 11:27 pm #1481340Hi,
I did some more research as I had recalled the Categories Images plugin used to work, and I found that you also have to add a code snippet, so I added it to your archive.php file and uploaded a test image and it now works:
this is also full width of your content:
The category title image sits below the category title and above the post content.
Please check the link below.Best regards,
Mike -
This reply was modified 2 weeks, 1 day ago by
-
AuthorPosts
- You must be logged in to reply to this topic.