Jump to content
Sign in to follow this  
sublimity

page boxes on different pages shows empty box

Recommended Posts

sublimity

I have used the Page ID to show different page boxes on 2 different pages. Although it does work, the page box that is not suppose to be on a page (using Page ID) shows up empty (no content in it, but the css styles and div tags show up--making a thin line). Here's the code that shows up:

<div class="fboxes fix">
	<div class="fboxdividers fix">
															</div>
	</div>
	<div class="clear"></div>

Here's a 2 screenshots: (iblog css) iblog css (my css) my css I hope that is clear....thanks

Share this post


Link to post
Share on other sites
sublimity

I meant to say "feature box" not "page box"

Share this post


Link to post
Share on other sites
kastelic

You mean your using CSS to hide the ones you don't want to see? What do you mean by "I used the page ID".

Share this post


Link to post
Share on other sites
sublimity

I just meant that the feature box that should not show up on that page is creating those css tags. The content is not showing up (like it should, because that feature box is for another page, but it is still creating those css tags).

Share this post


Link to post
Share on other sites
kastelic

And how you are you hiding that feature box, with CSS or through the page Section Control?

Share this post


Link to post
Share on other sites
sublimity

I'm doing everything through the Feature Set up (putting the page id on the feature boxes I want per page) -- I haven't done anything with the css (except my own styling. I showed two screen shots--one with my altered css, and the other with the default css)

Share this post


Link to post
Share on other sites
kastelic

Have you tried checking "hide features" on the page that you don't want the feature to appear? (Section Control)

Share this post


Link to post
Share on other sites
sublimity

I do want the feature box to show on that page, and I thought using the page id in the future set up would just make those features I want show up on certain pages. And it does work, the feature box I have on the home page is not on the services page, but there is a line below the feature box. It's like the content of the home feature box is not on the services page, but the css styling is.

Share this post


Link to post
Share on other sites
kastelic

I don't know man, I mean, where do you put in the page id? I would just have 2 different "feature sets" meaning each set of features is assigned to different categories. Then when you make the page, just choose which feature set you want to display. Sorry if im just not understanding you. Maybe the problem is more that its showing two feature areas when it should be showing one. Is it possible that in Template Control, you have the features area dragged into a template and also dragged into an element within that template? Which templates are you using for these pages?

Share this post


Link to post
Share on other sites
kastelic

Or I guess more of a realistic example of the second possibility above is that you have the features section dragged into the Site Header and also into a page template? As a last resort, are you able to hide the offending bar with CSS? (display:none)

Share this post


Link to post
Share on other sites
kastelic

And as a final final resort, if you can't only target one of the feature divs, you may have to use jQuerys nth selector to only target the second one.

Share this post


Link to post
Share on other sites
sublimity

It's local on my computer, but I just set up iblog pro on my server, and I get the same thing. link to my server I have two pages that use two different set of feature boxes--the home page and services page. I use the "Page IDs - Comma Separated" to specify the home and services page. I'm getting the impression that I only use the same feature boxes on certain page, and not different feature boxes on different pages?

Share this post


Link to post
Share on other sites
catrina
I'm getting the impression that I only use the same feature boxes on certain page, and not different feature boxes on different pages?
Since there is a Display Page IDs setting in the feature boxes settings, I don't see why different feature boxes can't be set up on different pages. It says this about the feature box page IDs: if none are set, it will be shown on all pages with fboxes enabled. It doesn't say anything about not specific feature boxes displaying on specific pages...

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
sublimity

Yeah, it does work sort of....both the home and services page have their feature boxes on them, but then it creates that line below each one. And looking and the source code, that line has the same css styles as a feature box, but it is empty. And that is what I want to get rid of.

Share this post


Link to post
Share on other sites
catrina

Add this CSS code to your custom code area:

div.fboxes div.fboxdividers {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
sublimity

I just did that, and I got a strange result.

Share this post


Link to post
Share on other sites
catrina

Ah, it took away the boxes too. Take that code out and replace it with this:

div.fboxdividers {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
sublimity

I create a page called "show feature box"-- it has the show feature box checked, but the id of this page has not been added to any of the feature boxes created, but it still shows that line.

Share this post


Link to post
Share on other sites
catrina

I think you're going to have to go into the parent file (template_fboxes.php) and just get rid of it that way. This is what you want to look for and delete:

<div class="fboxdividers fix">
					<?php endif;?>
					<?php $count++;?>
				<?php endif;?>
			<?php endforeach;?>
		</div>

After saving check to see if the line is still there.


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
sublimity

Okay, I will do that. Thank you for your help. I just did it, got an error: Parse error: syntax error, unexpected $end in /home/sublimit/public_html/wordpress/wp-content/themes/iblogpro/pro/template_fboxes.php on line 27

Share this post


Link to post
Share on other sites
sublimity

I just put it back. I have to attend to some other things. Again, thank you for your help. I'm thinking it's a bug?

Share this post


Link to post
Share on other sites
catrina

Okay, open the file again and add the code you just removed back where it was. I think CSS would be the best way, but the problem is, it's also taking away the entire fbox area...


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
sublimity

I agree....changing the css will affect the whole thing. I think it it's a bug--as far as I know, I'm following the directions of what is says to create feature boxes and have it go to certain pages. When I added that last page "show feature box" - it has that box checked "Show feature boxes (from feature setup) on this page", and I did not include the ID of that page in the feature box set up--so none of the feature boxes are on that page, just that line.....very strange.

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  

×