yaydesign
Forum Replies Created
-
Forum: Hacks
In reply to: proofread my stupid conditional statement?- Your
get_the_terms
suggestion works perfectly, and I don’t mind the slight clunkiness. (On the contrary, this way it will match all the rest of my coding.) - You are a good person for helping random people who probably don’t always express their gratitude for your willingness to help. Cheers to you.
Forum: Plugins
In reply to: [WP Smart Mobile Theme Plugin] wpsmart mobile pluginHeya – I’m having the same problem. The theme I’m using shows content on the homepage via a custom page template; there’s no actual content on the “page” itself. As such, I want to set the mobile homepage to the blog page so that a simple list of posts shows up. I set the dropdown to the Blog page but preview (and test on my phone) still show the blank homepage placeholder page. Bummer, ’cause otherwise your plugin looks amazing! Any ideas?
Site is here: https://bit.ly/1c4vJZ4
Forum: Fixing WordPress
In reply to: one site, two sections?Christine, I’m hoping I can impose upon you one more time – the theme I’m using has some fairly complicated nested functions and I’m having a hard time merging your awesome if/else code with the menu function.
The code I need to replace is as follows:
$out .= wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container_class' => 'jqueryslidemenu', 'menu_class' => ( !has_nav_menu( 'primary-menu' ) ? 'jqueryslidemenu' : ''), 'echo' => false, 'walker' => ( has_nav_menu( 'primary-menu' ) ? new mysiteDescriptionWalker() : '') ));
I keep getting “unexpected ‘if’ found” or “unexpected ‘<‘ found!” or unexpected this or that found. I am obviously coding over my head.
Any ideas about how to turn that into something like yours?
Forum: Fixing WordPress
In reply to: one site, two sections?Oh, neat! It’s slightly more complicated PHP than I normally play with, but I’ll totally give it a shot. Thanks so much for your help; I truly appreciate it.
Forum: Fixing WordPress
In reply to: one site, two sections?Thanks, Christine – I would love to have it be as simple as two categories, but since each section would also have static pages involved and would need different menus, I’m not sure how to go about that.
Let’s say the personal section has a blog, a “guestbook” page and a page of photos. The work section has a blog, a page of downloadable files and a different page of photos. Each section should only have its own pages show up in the menu. Maybe I could create a second menu in functions.php & just have each header file call the menu for that side?
- Your