Jump to content
Sign in to follow this  
infojerrytattoocom

Problem with feature page as front/blog page

Recommended Posts

infojerrytattoocom    0
infojerrytattoocom

yes, that's right, and I knew it but I have some problem here, my front page is also my posts page and as "cmunns" said: [the PAGE ID option for the feature slides isn't possible with the blog page bc the blog page has no actual page meta ID...], say that; I have to find a way to avoid that the feature set of my home page appears also on other pages with a feature template. To be clear as much as I can: my home/posts page: http://jerrymagni.com/wp/ is using a feature-template and have this feature slides (home1, 2 and 3). which I can not assign a page ID my portfolio: http://jerrymagni.com/wp/portfolio/ is using a feature-template and have assigned the feature slides "port1", 2 and 3 but, because I cannot assign a Page ID to the slides of the home page, I can see also the feature slides of the home page and it's what I want to avoid. I'm totally new to the CSS scripting, so I don't know how to proceed; even if I'm pretty sure the solution is just under the corner Can you help me?

Share this post


Link to post
Share on other sites
catrina    103
catrina

Ah, okay, I understand now. Here is CSS you should try instead:

.page-id-15 #feature #home1 {display:none}

This will hide the home1 feature on your homepage slider. It can be changed so that it hides the feature in the slider in your other pages. Can you please post a link to a page where you want a specific slide to be hidden?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
infojerrytattoocom    0
infojerrytattoocom

I put that code in Custom CSS but nothing happen :(

Share this post


Link to post
Share on other sites
catrina    103
catrina

Can you post a link to the page where you want the feature slide to be hidden? Also, can you provide the name of the feature slide that you want to hide?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
catrina    103
catrina
body.page-id-165 #featurearea #home1, body.page-id-165 #featurearea #home2, body.page-id-165 #featurearea #home3 {display: none;}


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
infojerrytattoocom    0
infojerrytattoocom

still not working :(

Share this post


Link to post
Share on other sites
kgstew    2
kgstew

what happens if you edit /pro/template_feature.php and add this code to the top:

	<?php if(is_home()) {
	
	$dpost = $post;
	$post->ID = 9999;
	
	} ?>
	
then use a page id of 9999 in feature setup.. . then at the end of the feature template (above) add this to set back the $post variable:
	<?php if(is_home()) {
	
	$post = $dpost;
	
	} ?>
	

Share this post


Link to post
Share on other sites
infojerrytattoocom    0
infojerrytattoocom

Hallelujah!!! You're the man Finally the problem is solved. Thank you so much :)

Share this post


Link to post
Share on other sites
infojerrytattoocom    0
infojerrytattoocom
Hey kgstew, I'm still working on the same website, I know it's a while but I'm on and off on that site. Anyway, your code works to show the feature box in my post/homepage but it disable the thumbnail in the first post of the page, any suggestion? the page is here: http://www.jerrymagni.com/wp

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×