monitor
Forum Replies Created
-
Also note if i do use them together, yoast post titles and also the
<meta name=”description” content=”<?php the_excerpt_rss(); ?>” /> in my header, the result is:<!-- meta tags --> <meta name="description" content="big red car" /> <!-- This site is optimized with the Yoast WordPress SEO plugin v1.1.7 - https://yoast.com/wordpress/seo/ --> <meta name="description" content="focuskeyword"/>
Then, google does not pickup the second meta desc, and display this post as
Big Car
https://www.sitename.com/category/cars
big red carIs some code like
<meta name=”description” content=”<?php focuskeyword(); ?>” /> , <?php the_excerpt_rss(); ?>” /> possible? because that would work.i just removed “forced titles’ and now it seems to be ok. But when i remove the forced titles, i do not have that “<!– This site is optimized with the Yoast WordPress SEO plugin” snippit in the html anymore. So i wasn’t sure the plugin is active.
Do you have any idea what might cause it?
<head profile="https://gmpg.org/xfn/11"> <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> <title><?php if ( is_home() ) { ?><?php bloginfo('name'); ?> | <?php bloginfo('description'); ?><?php } ?> <?php if ( is_single() ) { ?><?php wp_title(''); ?><?php } ?> <?php if ( is_category() ) { ?><?php single_cat_title(); ?>Cases and Covers for <?php } ?> <?php if ( is_page() ) { ?><?php bloginfo('name'); ?> | <?php wp_title(''); ?><?php } ?> <?php if ( is_search() ) { ?><?php bloginfo('name'); ?> | Search Results<?php } ?> </title> <!-- meta tags --> <?php if (is_single() || is_page() ) : if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <meta name="description" content="<?php the_excerpt_rss(); ?>" /> <?php endwhile; endif; elseif(is_home()) : ?> <meta name="description" content="<?php bloginfo('description'); ?>" /> <meta name="keywords" content="some,website,keywords" /><?php endif; ?> <?php wp_head(); ?> <?php if (is_archive() && ($paged > 1) && ($paged < $wp_query->max_num_pages)) { ?> <?php } ?> </head>
just open your php files in “view” folder and change words after “_e(‘”, or open the language folder and then the .po file to see exactly which line and which .php file to change the text
–tc
To have ID2 (product 2) show a message “Thank you for this purchase.” , is ab it odd, what about people who buy product 1 (ID1), they dont get that warming message?. I think what you’re trying to do is way beyond my expertise, but if i was in your position where i want each cart ID to show a specific message, i’de think of it this way:
each ID is linked to an Item Number and product. So if ID1 is linked to a product “orange”. So then you go and find the wordpress post id of “orange”, and then when people add orange to their cart, and checkout, you can modify the checkout page itself with some php rule like “if post id= orange, then echo this message “thanks for buying an orange”.
But anyway, if u want anything to show at the checkout, you’re going to have to add the code to your Pages > Checkout page and install a wordpress plugin that lets you execute PHP code in pages/posts.
hi TLCJohn
Why not just make two variations? one variation being Hire, and the other being Buy ?
which means your dynamic message will just show once, because each order ID is unique and just used once. Why not just write the message on the post itself? You can have messages when its in a specific category etc.. but i’m not quite sure what you mean by order ID.
I’m sure this can’t be done without rewriting almost all the cart code. The image has to be linked to the variations, you’ll have to have a javascript gallery set up etc..etc.. its huge.
Forum: Plugins
In reply to: [Plugin: Cart66 Lite] Checkout button not workingI know it should always point to store/cart and store/checkout
Go to Pages, and check the slug on those 2, you can’t cange it to something else, it must be cart and checkout.Forum: Plugins
In reply to: All In One Cufon and W3 Total CacheI had exactly the same problem. You should untick HTML minify settings under Minify
Forum: Plugins
In reply to: [Cache Images] [Plugin: Cache Images] How to stop thumbnailsIf i knew this plugin was going to make 10 pointless copies of every single image, and each of my posts have about 20 images, i would have never installed it. I guess nobody have an issue with web space.
I’ve found out this cannot be done. Only way is to make my complete wordpress French, by changing the (‘WPLANG’, ‘en’); in wp-config. i cannot have French cart66 plugin on an (‘WPLANG’, ‘en’); installation. I manually changed the words in the .php files to French, it wasn’t so hard.
I’m an idiot, it’s acctually a page and the title is right there.
Forum: Plugins
In reply to: Cart66 lite add_to_cart shortcode in template fileI’ve managed to solve it.
What i did was pretty ingenius.
add a custom field scode and include the shortcode in it.then anywhere in a template file, just run this
<?php
if ( get_post_meta($post->ID, ‘scode’, true) )
echo do_shortcode(get_post_meta($post->ID, ‘scode’, $single = true));
?>hope it helps anyone else out there.
Forum: Themes and Templates
In reply to: Attachments for images hosted elsewhere?maldevivre, its easy, just copy the code that say “HTML Code” , its right below “DIrect LInk”, copy that code while you are in code or source mode, that way, it will let you click on the image itself, which will open in a new page, or if you use lightbox, the lightbox will be activated, if you copy the direct link code.. its just a plain image on your post, nothing else… also try selecting all the images on your gallery, and at the bottom click “generate HTML code” and choose the 1’st option of code, that works well with wordpress.. goodluck