How to remove the tripadvisor logo from the wordpress theme?

If you open header.php and remove line 96: <a class=”ta-bug” title=” TripAdvisor ” href=”http://tripadvisor.com”><img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/TA_bug.gif”></a>, it will be gone. I cannot speak to the legality of this with certainty, but by my understanding of GPL2.0, you should be set.

Hard-coding a shortcode as the last menu item in primary navigation?

add_filter(‘wp_nav_menu_items’,’my_item’, 10, 2); function my_item($items, $args) { $items .= ‘<li class=”myclass”>whatever</li>’; return $items; } If you have a specific theme location for menu you can target it with : if( $args->theme_location == ‘mylocation’ ) EDIT I you can try $items .= ‘<li class=”myclass”>’ . echo do_shortcode(‘[shopping_cart]’) . ‘</li>’; but it will work only if the … Read more

Add session or cookie to remember last menu location

Unfortunately, since we aren’t able to see any of your current code, and it’s sort of a vague description of your implementation, it’ll be difficult for anyone to post actual code that will work for you. But to point you to some resources that might help, you might find these helpful: W3 Schools – PHP … Read more

Populate wordpress menu with link to custom field value (file download)

Try this: // Filter wp_nav_menu() to add additional links and other output add_filter(‘wp_nav_menu_items’,’add_pdf_to_menu’, 10, 2); function add_pdf_to_menu( $items, $args ) { if( $args->theme_location == ‘extra-menu’) { $pdf = get_post_meta( get_the_ID(), ‘mcf_uppsagning-pdf’, true ); if ( $pdf ) $items .= ‘<li><a href=”‘ . wp_get_attachment_url( $pdf ) . ‘”>Uppsägning</a></li>’; } return $items; } Essentially because you’re in … Read more