[Resolved] shadow effect on particular page

Home Forums Support [Resolved] shadow effect on particular page

Home Forums Support shadow effect on particular page

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1120986
    Sanu Kumar

    how to add shadow effect on my featured image on this page https://www.masteryblogging.com/buy-web-hosting-domain-name/
    This is a page and also tell me how to add author name and last updated on this page only.

    #1121319
    Leo
    Staff
    Customer Support

    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 🙂

    #1121416
    Sanu Kumar

    ok tell me

    #1121418
    Leo
    Staff
    Customer Support

    Like to add author and updated date manually?

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

    #1121424
    Sanu Kumar

    is there gravator would show

    #1121622
    Sanu Kumar

    it is not working

    #1121657
    David
    Staff
    Customer Support

    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

    #1121693
    Sanu Kumar

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

    #1121701
    Sanu Kumar

    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

    #1121849
    David
    Staff
    Customer Support

    This plugin allows you to switch Pages to Posts. I believe once you have switched you can uninstall the plugin:

    https://wordpress.org/plugins/post-type-switcher/

    #1121886
    Sanu Kumar

    will this affect my site seo

    #1122078
    David
    Staff
    Customer Support

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

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.