halfacre
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts page@christogeretz Not at all, but unfortunately I’ve been striking out there too. I’ve tried Members Only, Password Protect All Posts, Registered Users Only and none of them did what I really wanted, which was simply to have the Updates and Comments page not reveal it’s content to anyone without the password. Password Protect All Posts did just what it claimed, showing the title of each of the posts but hiding the content (not ideal for me). Registered Users Only and Members Only required a WordPress login, and for the life of me I couldn’t see how to create or assign a password, it just looked like someone had to create a wordpress account, which didn’t make sense to me, and I eventually abandoned it. If you know of one that does what I need, I’d sure appreciate a heads up on it. I just can’t understand why the built-in WP functionality doesn’t work.
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts page*sigh* Still no luck. I tried working in those code snippets to page.php like so:
[Code moderated as per the Forum Rules. Please use the pastebin]
No syntax errors, but it still doesn’t work. Am I just way off base?
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts pageSo I made a custom template for this page of posts by duplicating page.php in the child theme directory, added the following to the top of the file:
<?php /* Template Name: Page of Posts */ ?>I added the code snippets from quirm.net (as best I could anyway, since my template and the one the author used for an example were nothing alike – I had to fiddle with it to make sure there were no syntax errors), saved, uploaded it and changed the template on the pulldown menu on the Edit page for Updates & Comments.
On the bright side, the page does not break. It simply displays the same way it did before, with no password prompt. This is, of course, in a browser where I am not signed in as admin.
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts pageYeah, static front, with an updates and Comments section that displays the posts.
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts pageIt’s page.php, isn’t it? 😉
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts pageAh ha! Yeah, I think we’re closing in. One thing: I’m still too much of a scrub to know for sure which file to edit if I’m using the default template for my page of posts. Is it archives.php?
Yeah, I’m really showing my hiney now. Thanks esmi!
Forum: Fixing WordPress
In reply to: Cant get Password Protection to work on posts pageThanks for the suggestion, esmi. I really thought it would work, too, but unfortunately, no dice.
It says the page is password protected on Pages, but I just can’t get the password prompt to show up anywhere.
Forum: Fixing WordPress
In reply to: Good old duplicate home links in Andreas09No problem, @alchymyth, I really appreciate the help!
So I should change:
<div id="mainmenu"> <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb' => 'andreas09_page_menu' ) ); ?> </div>to, say:
<div id="mainmenu"> <?php wp_nav_menu( array( 'container' => false, 'theme_location' => 'primary', 'fallback_cb_child' => 'andreas09_page_menu' ) ); ?> </div>Then what new function should I make?
Forum: Fixing WordPress
In reply to: Good old duplicate home links in Andreas09Thanks @alchymyth. Since I’m using a child theme, I need to leave the parent theme version of functions.php intact (I’m handing this off to the client and if they upgrade WP, it will break and they will be lost) How can I do this in a child theme? How do you remove functions from the parent theme without *actually* removing them?
I tried something like the following (in my child theme functions.php):
<?php remove_action('wp_head', 'andreas09_page_menu' ); add_action( 'wp_head', 'andreas09_child_page_menu' ); function andreas09_child_page_menu() { ?> <ul class="level1"> <?php wp_list_pages( 'depth=1&title_li=' ); ?> </ul> <?php }But all this did was add a duplicate nav list (without the extra home link) at the top of the page.
Forum: Fixing WordPress
In reply to: Good old duplicate home links in Andreas09@alchymyth Sure, here’s the pastebin link: http://pastebin.com/TzHN6ZWp
Forum: Fixing WordPress
In reply to: Good old duplicate home links in Andreas09How on Earth do I override this function?
Forum: Fixing WordPress
In reply to: Good old duplicate home links in Andreas09Thanks @alchymyth. Found the line in functions.php. So I duplicated the file in my child theme folder (http://www.rdtsmartcard.com/wp-content/themes/andreas09-child) and removed the list item. Unfortunately, doing so (actually, simply duplicating the theme in the child folder) brings up a fatal error and breaks everything, presumably because of the duplicate calls…? Clearly I’m not going about this right.
Forum: Fixing WordPress
In reply to: override secondary style sheets in child themeI ended up just getting rid of the blue.css call in header.php (made a copy of this file in my child theme directory and removed the line that calls that sheet). That worked. Probably much cleaner this way anyway.
Forum: Fixing WordPress
In reply to: override secondary style sheets in child themeHm… I even just took the whole of the css from blue.css, and brought in into styles.css and put it at the end, but still won’t override that blue.css style sheet. Tried this with or without importing the blue.css style sheet at the beginning of styles.css. This is weird.
Forum: Fixing WordPress
In reply to: override secondary style sheets in child themeGood point. Indeed, I am using FF and FB (which is how I knew my rule was losing to the blue.css rule), but what I’m not getting is *why* the blue.css rule is taking precedence. But then, I’m not yet a firebug power user – it may have more info to give me that I’m unaware of how to get. All I know is if I cancel the offending blue.css rule, my desired styles show up.
I’m still downloading the whole wp install on my laptop, so when I’m through I’ll try your suggestions.
The site is at http://www.rtdsmartcard.com if you feel like taking a peek and seeing if I’m missing the obvious. Thanks again!