Site logo

Archived topic

shadow effect on particular page

11 replies · Started by Sanu Kumar on January 3, 2020

Viewing posts 1–12 of 12

Hi there,

This should work for shadow:

.page-id-4030 .featured-image {
    -webkit-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
    box-shadow: 10px 10px 5px 0px rgba(0,0,0,0.75);
}

As for showing author and updated date on this page only, it's do-able using PHP but I don't think it's worth it as it's only for this one page.

Would you consider manually adding those in at the start of the content? It's the easier and better solution in my opinion.

We can use CSS to make it look right.

Let me know :)

ok tell me

Like to add author and updated date manually?

Just do this:
<div class="entry-meta">By Sanu Kumar. Updated on xxx</div>

is there gravator would show

it is not working

Hi there,

wouldn't it be simpler to make the Page a Post ? Then you will have all of the Post Meta including the meta tags that search engines look for.

If you want to exclude that post from displaying in the Blog / Archives, create a new Category for it and add this PHP snippet:

function exclude_category( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
        $query->set( 'cat', '-xx' );
    }
}
add_action( 'pre_get_posts', 'exclude_category' );

Change the xx to the Category ID

how to do that...could u tell me step by step

can I delete that page and copy all the content with screenshots and paste it in the post and then publish it...will this affect the search engine

will this affect my site seo

I am not SEO expert but I cannot see why it would, it simply changes the post type from Page to Post.

This archived topic is closed to new replies.