- This topic has 11 replies, 3 voices, and was last updated 3 years, 1 month ago by
David.
-
AuthorPosts
-
January 3, 2020 at 7:30 am #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.January 3, 2020 at 3:42 pm #1121319Leo
StaffCustomer SupportHi 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 🙂
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 3, 2020 at 7:27 pm #1121416Sanu Kumar
ok tell me
January 3, 2020 at 7:44 pm #1121418Leo
StaffCustomer SupportLike to add author and updated date manually?
Just do this:
<div class="entry-meta">By Sanu Kumar. Updated on xxx</div>
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 3, 2020 at 7:56 pm #1121424Sanu Kumar
is there gravator would show
January 4, 2020 at 4:31 am #1121622Sanu Kumar
it is not working
January 4, 2020 at 5:14 am #1121657David
StaffCustomer SupportHi 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 IDDocumentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 4, 2020 at 5:58 am #1121693Sanu Kumar
how to do that…could u tell me step by step
January 4, 2020 at 6:02 am #1121701Sanu 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
January 4, 2020 at 6:52 am #1121849David
StaffCustomer SupportThis 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/
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/January 4, 2020 at 7:33 am #1121886Sanu Kumar
will this affect my site seo
January 4, 2020 at 12:21 pm #1122078David
StaffCustomer SupportI am not SEO expert but I cannot see why it would, it simply changes the post type from Page to Post.
Documentation: http://docs.generatepress.com/
Adding CSS: http://docs.generatepress.com/article/adding-css/ -
AuthorPosts
- You must be logged in to reply to this topic.