chazVnG
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: wp_list_pages not showing the current page for some reason.In that case wouldn’t it be the same case if I was in any of the other top level pages?
I put the child_of in there so it would always show those child pages. Is there something I need to change in the string?Forum: Fixing WordPress
In reply to: wp_list_pages not showing the current page for some reason.Good point, forgot about that. Here’s the link to the page: https://omnispring.vineandgrain.com/
Specifically I’m concerned about the dropdown under services. When you click on any of those child pages, the current page disappears.
Forum: Fixing WordPress
In reply to: Category name and description won't displayWow, that was fast. Thanks.
Cool, I didn’t know about is_single and single_cat would only work on certain pages, that’s a huge help. I put together an if statement to help pull the right title depending on the page you’re on.
I’ve got the category name to show up on both pages and category pages, but I’m still stuck getting the description to display on pages for some reason. This is what I have now:
<div id="header-text-top"> <?php if (is_category()) { ?> <h1 class="pagetitle"><?php echo single_cat_title(); ?></h2> <h3><?php echo category_description(); ?></h3> <?php } else { ?> <h1><?php $category = get_the_category(); echo $category[0]->cat_name; ?></h1> <h3><?php $category = get_the_category(); echo category_description(); ?></h3> <?php } ?> </div> <!-- header-text-top -->
Here’s a page where the description isn’t showing up: https://shoptrs.vineandgrain.com/nylon-case-klh-84b
Forum: Fixing WordPress
In reply to: Static home page won't laod – blog page loadsI’m having the same problem on another site of mine. I’ve reset the htaccess file by changing the permalinks under settings, but still the homepage won’t come up. it’s weird, when I go to website.com/home it comes up, but website.com doesn’t.
Forum: Fixing WordPress
In reply to: Crafty Cart Issues – haven't seen solution elsewhereTry opening up the CSS file: style-common.css and deleting the tag “white-space:pre;” under “form” and that should solve the problem.
Forum: Themes and Templates
In reply to: Scroll Bars On Product Page – Please HelpDeleting that white-space tag should fix the issue. If you’re using Firebug in Firefox, see if you can pull up that element and make sure your CSS is updated when you’re viewing the page and it’s not pulling the old version from your cache.
Forum: Themes and Templates
In reply to: CSS table problem (with WPescom Crafty Cart)If you just delete the white-space:pre; it will fix the issue.
I was staring at this for hours before I figured that out.
Forum: Plugins
In reply to: [Plugin: Shadowbox JS] Shadowbox no longer working on my siteOk, I figured it out. I was stupid and had at some point taken
<?php wp_footer(); ?>
out of the footer. Adding it back in fixed it.Forum: Fixing WordPress
In reply to: I can't create new pages or publish changes!Ok, I figured it out. It wasn’t the login tracker, it was the search plugin we used.
Forum: Themes and Templates
In reply to: if statement with child pages, and grandchild pages?YES, that worked.
THANK YOU.I tried looking for what I was trying to do in the codex, and I couldn’t figure out how to string it all together. Lifesaver!
Forum: Fixing WordPress
In reply to: Conditional statement for password protected postsAlright, so I’ve been thinking about the logged-in vs. password protected personal debate, and I think for this whole section of the website since it’s a series of several pages, it makes sense for the users to be logged in.
I’d like to put a login box on the page if you’re not logged in, and then have it load the page when you log in, not redirect to the admin. Is there an easier way to do this than I’m finding online? I’ve found resources for changing the wp-login page, but I want to be able to code it into those page template files.
Forum: Fixing WordPress
In reply to: Conditional statement for password protected postsAlso, if I make the parent page password-protected, it seems like the children are not password-protected. So that a visitor only has to put the password in once, is there something I need to put in the template file for those specific pages that makes the children also protected under the same password?
Thanks for the help guys.
Forum: Fixing WordPress
In reply to: Conditional statement for password protected postsSongdogtech, Initially I wasn’t looking at a role manager, but this might actually make sense for another section of the website. If I go this route, is there a way to make the login pieces show up on that page and when you login go RIGHT to that specific page and not the dashboard?
David, I tried that code, and it didn’t work. I’m not a php expert, am I missing something?