Hide author name and published date from Post Carousel in Stack Ethos

Hi there,

Thank you for providing the URL, I checked your site and I could not find the code being added to the site. This could be due to a syntax error in your Customizer, please review your Customizer > CSS section and look for extra or missing bracket or you can copy the entire CSS in your Customizer and paste here https://jigsaw.w3.org/css-validator/#validate_by_input and check for errors. However I tested the code again using your site and it works just fine.

Let us know how this goes!

1 Like

@Nabeel, When I go to Customizer > CSS – it is completely blank. No extra or missing bracket – nothing that could be a syntax error. I do all my customization in my child theme. And I have pasted each of the versions for taking out metadata in the slider in my style.css sheet, one at a time, but they aren’t working. Here is my style.css sheet in its entirety (it’s short).

/*
Theme Name: X Child
Theme URI: https://newapologetic.wpengine.com/wp-content/themes/x
Description: Twenty Fifteen Child Theme
Author: John Doe
Author URI: https://newapologetic.wpengine.com
Template: x
Version: 5.1.0
*/

.entry-cover-author,
.entry-cover-date{
display: none!important;
}

Hi @erichomeboy,

This seems to be a specific case of your environment that can be caused by a cache plugin or any other reason.

I suggest that you open up a new thread and give us detailed information there and give us Wordpress User/Pass/URL of your website using the Secure Note functionality of the post.

You can not add the information here as the original poster will see the login information.

Thank you.

@christopher.amirian – what type of role would you need in WordPress: staff, shop manager, customer, subscriber,contributor, author, editor, administrator?

@erichomeboy If you’re still having difficulties, please open up a new thread and provide login credentials in a secure note there, because as Christopher has said, anything you post here in a secure note will be seen by the original poster. When doing so, please provide us with administrator access.

Thanks!

@matt, I started a new thread as you suggested and was basically given the same code that above I said wasn’t working. I was told that staff could not log into my site because I had not provided it. Apparently when one starts a new thread, then all the old discussion is not referred to – as I have provided my site and the code I have already unsuccessfully used here. So if it works for you, I will stay in this thread instead of starting back at step 1 and repeating everything in a new thread

Hello @EricHomeBoy,

The code works. You have added it in your child theme’s style.css file. The problem is that your child theme’s style.css was not even loaded in the page.

To resolve the issue, I have edited your child theme’s functions.php file and added this:

<?php

// =============================================================================
// FUNCTIONS.PHP
// -----------------------------------------------------------------------------
// Overwrite or add your own custom functions to X Pro in this file.
// =============================================================================

// =============================================================================
// TABLE OF CONTENTS
// -----------------------------------------------------------------------------
//   01. Enqueue Parent Stylesheet
//   02. Additional Functions
// =============================================================================

// Enqueue Parent Stylesheet
// =============================================================================

add_filter( 'x_enqueue_parent_stylesheet', '__return_true' );



// Additional Functions
// =============================================================================

Please check your site now.

@RueNel, thank you for editing my child theme’s functions.php file. I am somewhat confused as the css code I was using so that I could put both pages in my carousel was working. I didn’t think it could work if my functions.php file was not loaded. But I’m no expert. Either way, most of the meta data is off the carousel now. So I’m a happy customer. BTW, when I did load the code that apex provided – for posting pages instead of posts in the carousel, I was able with a little manipulation to now have posts and pages in my carousel together. So that worked out well too. Best!

Glad it’s okay now :slight_smile: and you’re most welcome!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.