View Full Version : Help. :)
doorlight
08-28-2007, 07:08 AM
How could I hide a page? For example, i just want my About page and Lady page to be visible except for my Poll Archives.
Thanks in advance. :)
ses5909
08-28-2007, 08:28 AM
say that again :D
So you do want your about page visible? Sorry it's early for me so its even easier to confuse me.
doorlight
08-28-2007, 10:31 AM
say that again :D
So you do want your about page visible? Sorry it's early for me so its even easier to confuse me.
Hehe cute. :p It's already 5:30pm here.
I want to hide my Poll Archives page, that's it. :p
adalante
08-28-2007, 08:41 PM
Well, you'll need to know a little HTML and just remove the link to your archive on your sidebar.php
doorlight
08-29-2007, 03:14 AM
Well, you'll need to know a little HTML and just remove the link to your archive on your sidebar.php
But how? I'm using widgets.
:confused:
ses5909
08-29-2007, 10:09 AM
Is your poll and poll archives one big widget? Can you show us the link to that widget? We might be able to tell you how to modify it.
doorlight
08-29-2007, 10:53 AM
^ Yes.
I got the WP-Poll plugin here: http://lesterchan.net/others/downloads.php?id=10
It says that I have to make a page for poll archives.
Btw, I'm a fan of Lester Chan. I bug him in the email sometimes. lol. Thanks.
LiquidReflex
08-29-2007, 04:40 PM
If you just want to remove the link to the archive, I believe all you have to do is the following:
1. Open up polls-widget.php
2. Go to line 53 or find:
} else {
get_poll();
}
display_polls_archive_link();
3. Comment out the line below:
display_polls_archive_link();
by replacing it with
### display_polls_archive_link();
4. Save the file and upload
This will basically keep the poll from calling the archive link function. I haven't tested it, nor do I use that script, so there could be other areas that link to it. But I'm guessing that if you do the above, it should solve at least one of the problems. Hope this helps!
doorlight
08-30-2007, 07:06 AM
Hi Kev, thanks for the help and I think I got what you were trying to teach me but I guess, I don't have to do that because in the Poll Options I have this:
(image downloading)
http://i129.photobucket.com/albums/p233/laasya/poll1.gif
My problem is:
(image downloading)
http://i129.photobucket.com/albums/p233/laasya/poll2.gif
I'm getting two links for the poll archives. I wanted to hide the other one which falls under my Page section.
oh noooes. :(
SarahG
08-30-2007, 09:36 AM
This means that the wp_list_pages function is displaying the page too. What you'll need to do is edit the sidebar.php file in your theme.
First off find out the ID of the Poll Archives page. If you go to Manage -> Pages it will give you a number to the left of the Poll Archives page.
Then open up sidebar.php, either via the Themes Editor or on your computer in a text editor. Find the function wp_list_pages(...).
I don't know what you'll have between the brackets, but if there is other parameters (probably), add in before the closing bracket
&exclude=X
where X is the page ID of the Poll Archives page.
Then this will exclude that ID from the page list.
LiquidReflex
08-30-2007, 06:40 PM
^ what she said ;)
doorlight
08-31-2007, 02:45 PM
I'll be back. Will let you know. :P *mwah mwah*
vBulletin® v3.7.2, Copyright ©2000-2009, Jelsoft Enterprises Ltd.