graham85
Forum Replies Created
-
Forum: Plugins
In reply to: woocommerce pcode issueroduct id shorti managed to sort it i was taking the shortcode of the woothemes shortcode page which is incorrect you have to the icon in the page editor and display shortcode like this [products ids=”” skus=””]
Forum: Plugins
In reply to: [WooCommerce] woocommerce excelling ecommerce (sorted the issue now
Forum: Plugins
In reply to: [WooCommerce] woocommerce excelling ecommerce (and the image thumbnails aren’t cropping into smaller images
thanksForum: Fixing WordPress
In reply to: wp paypal shopping cart throwing up errorsForum: Fixing WordPress
In reply to: cant get wordpress wp sub menusi created a menu but it wont support subpages
Forum: Fixing WordPress
In reply to: cant get wordpress wp sub menusand this is the css.
#nav2 {
clear: both;
height: 45px;
width: 1000px;
background: url(images/nav.png) no-repeat;
margin-bottom: 35px;
overflow: hidden;
}
#nav2 li {
float: left;
line-height: 45px;
margin-right: 1px;
}
#nav2 li a {
float: left;
display: block;
color: #fff;
text-decoration: none;
padding: 0px 22px;
font-size: 12px;
text-transform: uppercase;
font-family: ‘PTSansNarrowBold’;
text-shadow: 1px 0 1px #000000;
}
#nav2 li.current-menu-item, #nav2 li:hover, #nav2 li.current-cat {
background: url(images/navh.png) repeat-x;
}
#nav2 li.first a, #nav2 li.first a:hover, #nav2 li.firstac a {
background: url(images/first-active.jpg) no-repeat scroll left !important;
}
#nav2 li li {
display: none;
}Forum: Fixing WordPress
In reply to: cant get wordpress wp sub menusand this is in the header.php
<?php if ( has_nav_menu( ‘secondary-menu’ ) ) { //checks if custom menu has been created
wp_nav_menu( array( ‘menu_class’ => ‘sf-menu’, ‘theme_location’ => ‘secondary-menu’ ) );
} else {// if not, old fashioned category menu will be loaded
?>
<ul class=”sf-menu”>
<?php $cat = get_option(‘swt_categories’); ?>
<li class=”category_item <?php if(is_home()) { echo ‘current-menu-item first’; } ?>”>” id=”home”>Home
<?php wp_list_categories(“title_li=&depth=1&exclude=$cat” ); ?><?php } ?>
Forum: Fixing WordPress
In reply to: cant get wordpress wp sub menusno. i placed the one page under the other to create a sub menu but it didnt appear at all.
my functions.php looks like like this
// This theme uses wp_nav_menu() in one location.
register_nav_menus( array(
‘primary-menu’ => __( ‘Primary Menu’ ),
‘secondary-menu’ => __( ‘Secondary Menu’ ),
) );
function my_wp_nav_menu_args( $args = ” )
{
$args[‘container’] = false;
return $args;
} // function
add_filter( ‘wp_nav_menu_args’, ‘my_wp_nav_menu_args’ );and my themeoptions.php looks like this:
array( “name” => “Menu settings”,
“type” => “heading”,
“desc” => “Here you can exclude some of the links in the menus of theme.”,
),array( “name” => “Exclude pages”,
“desc” => “You can exclude some of the links in the pages menu (comma separated if more than one!).”,
“id” => $shortname.”_pages”,
“std” => “”,
“type” => “text”),array( “name” => “Exclude categories”,
“desc” => “You can exclude some of the links in the categories menu (comma separated if more than one!).”,
“id” => $shortname.”_categories”,
“std” => “”,
“type” => “text”),array( “name” => “Miscellaneous”,
“type” => “heading”,
“desc” => “Here you can exclude some of the links in the menus of theme.”,
),Forum: Fixing WordPress
In reply to: make only specific post appear on front pageby their category’s. at the moment the homepage shows every post i have i only want 4 specific posts to feature on the homepage.
regardsForum: Fixing WordPress
In reply to: robots.txtive tried that but no look so far.
the link http://bopinternet.co.uk/robots.txt
ive even tried putting this in the header.php
<?php if(is_single() || is_page() || is_category() || is_home()) { ?>
<meta name=”robots” content=”all,noodp” />
<?php } ?>
might have to reinstall the addon domain because something not right and ive never had this problem before with an addon domainForum: Fixing WordPress
In reply to: robots.txti cant find the robots.txt file any where in my cpanel manager. the only thing i can think off is its been bad install as a addon domain.
Forum: Fixing WordPress
In reply to: robots.txtyeh i did at first whilst was building pages and stuff then switched it back to allow search engines
Forum: Fixing WordPress
In reply to: robots.txtjust trying to get it index as it new, theirs 14 pages so far and it wont accept my xml sitemap generated by yoast it says url restricted by robots.txt.
and yes its very confusing never had this problem before. especially when google blocked url check says it allows googlebot and then the fetch googlebot says its been denied.Forum: Fixing WordPress
In reply to: blog function not workingthe blog page has its own blog.php page
my index.php is my frontpage its static and has is_frontpage(); code in itForum: Fixing WordPress
In reply to: blog function not workingive cretated a seperate template for the blog roll. ive use this code so far but it doesnt display the post execerpts.
[please mark any posted code – see http://codex.ww.wp.xz.cn/Forum_Welcome#Posting_Code ]
<?php get_header(); ?> <?php if (have_posts()) : ?> <?php if (($wp_query->post_count) > 1) : ?> <?php while (have_posts()) : the_post(); ?> <!-- Do your post header stuff here for excerpts--> <?php the_excerpt() ?> <!-- Do your post footer stuff here for excerpts--> <?php endwhile; ?> <?php else : ?> <?php while (have_posts()) : the_post(); ?> <!-- Do your post header stuff here for single post--> <?php the_content() ?> <!-- Do your post footer stuff here for single post--> <?php endwhile; ?> <?php endif; ?> <?php else : ?> <!-- Stuff to do if there are no posts--> <?php endif; ?> <?php get_footer(); ?>