lapetitefrog
Forum Replies Created
-
Forum: Plugins
In reply to: [Tabby Responsive Tabs] Tabby Link to TabThank you so much! I spent a couple of hours trying to figure out how to do this, and I didn’t know it was that simple. Appreciate it! 🙂
So I tried out your method, but the jQuery slideToggle doesn’t seem to be working. I’ve included the code I’m using below. The #menu-item-206 is the unique ID to one of the menu items called, “About.” I tried to code it so that upon click of that menu item, the #aboutinfo would slide open and closed. Am I missing something?
HTML:
<div id=”switchmenu”><!–switchmenu begin–>
<span class=”switchitems”><?php wp_nav_menu( array( ‘theme_location’ => ‘primary’ ) ); ?></span>
</div><!–switchmenu end–>
<div id=”aboutinfo”>
<?php
$the_query = new WP_Query( ‘page_id=177’ );
if ( $the_query->have_posts() ) {
while($the_query->have_posts()){
$the_query->the_post();
the_content();
}
}
wp_reset_postdata();
?>
</div>jQuery:
(function( $){
$( “#menu-item-206” ).click(function() {
$( “#aboutinfo” ).slideToggle( “slow”, function() {
// Animation complete.
});
});
} )( jQuery );The website I’m working on is my blog site (lapetitefrog.com), which I’m trying to move from Blogger to WordPress. You can see my WordPress work in progress of it on: http://madebynichole.com/
As you can see, there are only two menu items on the sidebar menu: “About” and “Contact”. Instead of being directed, on click, to an actual About page, I’d rather the content from the About page to display below the About menu item (accordian style).
^I know you can do this statically via javascript/jquery, but I want it to be dynamic so that the content that is displayed on click can be edited through the WordPress admin. Hope this makes more sense.
The HTML is there and the menu is called using wp_nav_menu. I’m not sure what you mean by children, but the “menu items/pages” have been created via the admin.
Hi Andrew, the menu I’m currently working with does not have any children. Also, I’m creating my own theme from scratch.
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Dropdown sections in the menu?That’s great! Thanks so much for all of your help! 😀
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Dropdown sections in the menu?Thanks Nate and nuobodu!! The code definitely helped me out!
Regarding the subpages route, I’ve tried that in the past and failed to create a clean dropdown menu that worked with mobile phones and tablets. (I’m sure it was much simpler than I made it to be.) And so I resorted to just putting the menus all on one page.
Also, how do I tweak the css so that it matches my site’s font? Would I change the css in my wordpress theme css file? Or in the Shortcodes ultimate css editor?
Thanks! 🙂
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Dropdown sections in the menu?The Shortcodes Ultimate plugin looks like the best option for me, because my client has three different restaurant locations and a separate menu for each location. I’m having trouble understanding how to use the food and drink menu short code with the ultimate plugin shortcode. I want to place the codes so that each menu section is a dropdown style. Is there a shortcode for each menu section? So far, I’m only able to find the main food and drink menu short code.
Thanks!
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] Menu items short codesOops, I figured this one out! Thanks!
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] How to put in menu item images?That did the trick! Thank you for your excellent help! 🙂
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] How to put in menu item images?Switching back to the default theme seemed to do the trick. However, I am creating a custom theme and would like for the plugin to work with my theme. What could I be doing wrong? Thanks!
Forum: Plugins
In reply to: [Five Star Restaurant Menu and Food Ordering] How to put in menu item images?I followed your directions, but still can’t seem to find the featured image panel. There was no option for the image panel in the Screen Options pull down.