How to Show Full Content on Sticky Post
Topics related to Realistic theme goes here.

yepezd

New Member Rank
Posts: 8
Joined: Wed May 25, 2016 8:15 am
Display Name: yepezd

How to Show Full Content on Sticky Post

linkPost by yepezd » Wed May 25, 2016 8:28 am

I am using the Realistic Theme and I would like to make the sticky post show the full content and not just an excerpt. However I would like to keep the rest of the posts [non sticky post] as excerpts. i want to donate for this great theme. please give donation link. thank you...
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: How to Show Full Content on Sticky Post

linkPost by admin » Wed May 25, 2016 12:06 pm

Hi yepezd, thanks for using Realistic :D
I have created a child theme for you! Download realistic-child.25.05.2016.rar file, extract realistic-child.zip from it and upload/install it to your WP site like any other WP theme. Then activate it. That's it! Now the theme will show excerpt for normal posts and full post content for Sticky posts on archives ( Archive, Search, Homepage ...etc).

If you are curious, here is what I have done:
I have edited /template-parts/content.php file and changed: (line 42)
<?php archives_excerpt(); ?>
To:
<?php if ( is_sticky() ) {
	the_content();
} else {
	archives_excerpt();
} ?>
Thanks for choosing to donate to me :) Your support is highly appreciated! Check your PM inbox for my PayPal email address.

Edit: Ah! I forgot to attach the child theme :oops:
realistic-child.28.05.2016.rar
(2.41 KiB) Downloaded 100 times
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
yepezd

New Member Rank
Posts: 8
Joined: Wed May 25, 2016 8:15 am
Display Name: yepezd

Re: How to Show Full Content on Sticky Post

linkPost by yepezd » Thu May 26, 2016 5:26 am

Thank you for help but still thumbnail image showing on left side and Read More.... (view article....) appearing on below bottom . how remove both, donation done! i'll give more donation later...
yepezd

New Member Rank
Posts: 8
Joined: Wed May 25, 2016 8:15 am
Display Name: yepezd

Re: How to Show Full Content on Sticky Post

linkPost by yepezd » Sat May 28, 2016 1:00 am

Still thumbnail image showing on left side and Read More.... (view article....) appearing on below bottom on sticky post . how remove both, donation done! i'll give more donation later...

Please reply i need it urgently... thanks
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: How to Show Full Content on Sticky Post

linkPost by admin » Sat May 28, 2016 9:41 am

Oh dear I am really sorry! Your post notification was hidden because many people yesterday posted on the forum after you did.
Today I will create another child theme with the following modifications:
Sticky Post's thumbnail will be placed at the top of title (size will be changed too).
Readmore button will be removed.

Thanks for your donation :) money received!
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
yepezd

New Member Rank
Posts: 8
Joined: Wed May 25, 2016 8:15 am
Display Name: yepezd

Re: How to Show Full Content on Sticky Post

linkPost by yepezd » Sat May 28, 2016 9:45 am

That's great and very exciting.... :)
admin wrote:Oh dear I am really sorry! Your post notification was hidden because many people yesterday posted on the forum after you did.
Today I will create another child theme with the following modifications:
Sticky Post's thumbnail will be placed at the top of title (size will be changed too).
Readmore button will be removed.

Thanks for your donation :) money received!
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: How to Show Full Content on Sticky Post

linkPost by admin » Sat May 28, 2016 9:47 am

Now, I only have access to my phone. As soon as I get to my PC, I will start working on your child theme ;)
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: How to Show Full Content on Sticky Post

linkPost by admin » Sat May 28, 2016 10:58 pm

Child theme is ready! Download realistic-child.28.05.2016.rar archive and extract realistic-child.zip from it. Now upload/install this file to your WP site and activate it.
realistic-child.28.05.2016.rar
(2.41 KiB) Downloaded 111 times
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943
yepezd

New Member Rank
Posts: 8
Joined: Wed May 25, 2016 8:15 am
Display Name: yepezd

Re: How to Show Full Content on Sticky Post

linkPost by yepezd » Sun May 29, 2016 8:53 am

Thank you for helping, working fine now...

1. I'll try to fix sticky post title on centre (currently left side).
2. If there any help about comment box background colour change would be great, because our members confusing where leave comment as same colour of text as box....
Image
admin wrote:Child theme is ready! Download realistic-child.28.05.2016.rar archive and extract realistic-child.zip from it. Now upload/install this file to your WP site and activate it.
realistic-child.28.05.2016.rar
User avatar
Asmi Khalil

Site Admin Rank
Posts: 779
Joined: Fri Jun 26, 2015 7:13 am
Display Name: Asmi Khalil
Location: Tunisia

Re: How to Show Full Content on Sticky Post

linkPost by admin » Mon May 30, 2016 3:24 pm

You're welcome :D
1. I'll try to fix sticky post title on centre (currently left side).
2. If there any help about comment box background colour change would be great, because our members confusing where leave comment as same colour of text as box....
Go to Appearance => Customize => Design & Layout and add the below CSS code to Custom CSS textarea:
.post-box.sticky .post-title {
	text-align: center !important;
	display: block;
}
.comment-respond {
	padding: 8px;
	background-color: #FFF;
	box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
}
.comment-reply-title {
	margin-top: 0;
}
I think there is a world market for maybe five computers. - IBM chairman Thomas Watson, 1943

Who is online

Users browsing this forum: No registered users and 1 guest

It is currently Fri Feb 22, 2019 8:34 pm