Mark Shirley
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pageDo you mean something like this esmi
<?php if( is_front_page() || is_home() ) $banner_url = esc_url( home_url( '/' ) ); else $banner_url = 'http://example.com/';?> <a href="<?php echo get_permalink( 268 ); ?>Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pagesorry ment to say internal on post above
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pageWow thanks esmi – no idea how to code that one im a cut and paste php guy – the code you gave me seems to work fine for an external page.
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pagePS – just seen the last bit of your answer it was an internal page – cheers
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pageor woman Ha Aa
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pageWell done esmi – that works fine – top man – Thanks bundles 🙂
Forum: Fixing WordPress
In reply to: hyperlink branding page area to a specific post or pageHi esmi
twenty-eleven child theme we are using the home page with no menu and need the internal pages to link to a specific page other than the home page.
Forum: Plugins
In reply to: [Event Calendar / Scheduler] [Plugin: Event Calendar / Scheduler] doesnt workSorry but hadnt noticed this was still open
Forum: Plugins
In reply to: [Event Calendar / Scheduler] [Plugin: Event Calendar / Scheduler] doesnt workSorted – Sarthi just add shortcode into contact form 7 to get the calander field
[date date-2]Forum: Fixing WordPress
In reply to: Unable to hide title in Twenty Eleven headerHave you selected a sidebar theme on your pages and added the correct widgets
Forum: Fixing WordPress
In reply to: Unable to hide title in Twenty Eleven headeror try code below better for SEO
#site-title { position: absolute; top: -9999px; left: -9999px; } #site-description { position: absolute; top: -9999px; left: -9999px; }Forum: Fixing WordPress
In reply to: How to put my site in google search engine ?try google xml sitemap plugin or yoast seo plugin has a sitemap function that notifies google.
Forum: Fixing WordPress
In reply to: Device Theme Switcher pluginhttp://wordpress.org/support/topic/register-new-nav-menu-in-child-themes?replies=2
[ Moderator note: please do not create more than one thread per topic. We close or delete the duplicates when found. ]
Forum: Fixing WordPress
In reply to: Register new nav menu in child theme'sRESOLVED – code below – select the “masthead menu” in your “computer” primary menu and select “mobile” in your “mobile” themes primary menu. PS remove the line of code that looks similar in the header.php files in both themes.
// go's in the functions.php file of computer theme. register_nav_menu( 'primary', __( 'Primary Menu', 'namespace' ) ); <?php wp_nav_menu( array( 'menu' => 'Masthead Navigation', 'container_id' => 'navigation', 'theme_location' => 'primary' ) ); ?><!-- #go's in the header.php file of my computer theme --> <?php wp_nav_menu( array( 'menu' => 'Mobile Navigation', 'container_id' => 'navigation', 'theme_location' => 'primary' ) ); ?><!-- #go's in the header.php file of my mobile theme -->Forum: Fixing WordPress
In reply to: Display All Posts in a child CategoryComplete code below:
Thanks bythegram<?php $my_query = new WP_Query( array( 'posts_per_page' => 10, 'category__and' => array( 7, 9 ) ) ); ?> <?php while ($my_query->have_posts()) : $my_query->the_post(); ?> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"> <div id="wrapper"> <?php the_title(); ?></a> <div class="excerpt-content"> <?php the_excerpt(); ?> </div> <h5>image</h5><a href="<?php the_permalink(); ?>"><img src="<?php the_field('image'); ?>" alt="text-here" /></a> </div> <?php endwhile; ?>