• Posted this to the wp.com forums and got sent over here, so…

    Using Dara theme for a client site via Jetpack. I have the large images for the featured content slider up but I want to leave the post title only and remove the date and author info from the text on the images. I assume it’s somewhere in the CSS or PHP but I can’t figure out where that detail is called. I’m OK going into the code to make the change but would appreciate some direction on finding the right spot.

    I don’t honestly need the pages underneath, so if there’s a way to just turn it into a non-linked graphical element that would be great too.

    Thanks

    Dan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    To hide the date and author info from the featured content slider add the following into the custom css box (in the admin area go to themes/customise/additional css):

    .home .hero-content-wrapper .entry-meta{
    display: none!important;
    }

    If you want to remove the links you will need to edit the php file. The one you need is /components/post/content-featured.php

    Just remove the opening and closing tag from around the h2 title tag (roughly line 35). Hope that helps!

    If you want to remove the links you will need to edit the php file. The one you need is /components/post/content-featured.php

    Just remove the opening and closing tag from around the h2 title tag (roughly line 35). Hope that helps!

    Please do not edit files in Dara – you would lose those edits if the theme is updated.

    Instead, create a child theme, then use it to override template files in the parent theme.

    Thread Starter skinnydan

    (@skinnydan)

    Thanks for the help everybody.

    I do already have a child theme in place. Not sure the script I used (use-child-theme.php I found on GitHub) created all the PHP files – it looks like not, so I may leave well enough alone and move on to more important things.

    Many thanks again,

    Dan

    One alternative would be to use css to prevent users from being able to click the links (rather than completely removing them in the template files).

    Try adding the css below to your site via the customizer in Appearance > Customize > Additional css

    .featured-page-area .featured-page a {
        pointer-events: none;
    }
    Moderator Kathryn Presner

    (@zoonini)

    Gary had a great suggestion about removing the clickability of links on the slider.

    This CSS should remove the slider’s post dates, author, and categories – as well as removing the clickability of the post title in the slider:

    .flexslider .entry-meta, .flexslider .cat-links {
      display: none;
    }
    
    .featured-post a {
      pointer-events: none;
      cursor: default;
    }

    Let us know if you need further help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘removing date/author info from homepage slider images’ is closed to new replies.