Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter nicolethompson8

    (@nicolethompson8)

    Just a follow-up based on some tests I’ve run:

    Unless I’m much mistaken, I believe the duplicate function is to blame. My tables consist of a lot of duplicating and it seems the newly duplicated rows appear as ‘older’ than their originals.

    This is a huge hassle for me as, like I said, I have a few dozen tables. Having to edit all of them to add the rows as new rows rather than duplication is just a wildly terrible situation for me, the labour involved would be immense.

    It’s an enormous bug if your duplication function makes the newer row older than the original.

    Forum: Fixing WordPress
    In reply to: SEO Issues
    Thread Starter nicolethompson8

    (@nicolethompson8)

    Buddy your issue is different from mine, could you please create your own post elsewhere and not hijack my thread with an issue that is nothing like mine?

    Forum: Fixing WordPress
    In reply to: SEO Issues
    Thread Starter nicolethompson8

    (@nicolethompson8)

    Thanks Krisha, I’m super grateful for this advice. I did have a keywords meta tag in there at one point but I removed it and went back to the default code that came with the theme for the purposes of posting this issue.

    I will most definitely be putting all of your instructions to good use once I reactivate Yoast’s SEO plugin.

    Do you have any advice on the titling breakdown though? I would like to fix this problem without any SEO plugin activated as these issues are a problem within the site itself without even getting to the search engine issues.

    In addition to the “SITE NAME | DESCRIPTION” not showing properly in the browser’s title bar without an SEO plugin activated, I’ve also noticed that this impacts on the title bar when viewing pages. i.e. instead of it saying “SITE NAME >> PAGE NAME” it only says “>> PAGE NAME”.

    There is definitely a bigger issue than the SEO problems.

    Forum: Fixing WordPress
    In reply to: SEO Issues
    Thread Starter nicolethompson8

    (@nicolethompson8)

    Thanks guys, I very much appreciate your replies.

    Sorry Swanson, I don’t follow what you’re saying.

    I made your suggested change Christine, thanks, which then caused the title bar in my browser to read “www.bagatellabitumen.com” instead of at least the “Bagatella Bitumen” it was reading before.

    I already had Yoast’s SEO installed so I activated it again and now the title bar reads correctly, but my search results in Google still aren’t great, the main site still displays as the URL with no description. The ‘Home’ page also isn’t recognised at all in Google, yet the ‘About’ page and two of my galleries are.

    Any thoughts?

    I am still concerned though that without the Yoast plugin activated the theme is still essentially broken and not recognising the very basic essential “head” tag functions.

    Does the broken theme name issue not play into this? It bothers me that if I change the words “WordPress Theme Number” in the stylesheet to correctly read “theme1359” that the whole theme breaks….?

    Including the entire “head” tag below:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    	<title><?php wp_title(); ?></title>
      	<meta name="viewport" content="width=device-width,initial-scale=1">
    	<meta name="description" content="<?php wp_title(); echo ' | '; bloginfo( 'description' ); ?>" />
    	<meta charset="<?php bloginfo( 'charset' ); ?>" />
    	<link rel="profile" href="https://gmpg.org/xfn/11" />
      <link rel="icon" href="<?php bloginfo( 'template_url' ); ?>/favicon.ico" type="image/x-icon" />
    	<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    	<link rel="alternate" type="application/rss+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'rss2_url' ); ?>" />
    	<link rel="alternate" type="application/atom+xml" title="<?php bloginfo( 'name' ); ?>" href="<?php bloginfo( 'atom_url' ); ?>" />
    	<!-- The HTML5 Shim is required for older browsers, mainly older versions IE -->
    	<!--[if lt IE 9]>
    		<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    	<![endif]-->
       <!--[if lt IE 7]>
         <div style=' clear: both; text-align:center; position: relative;'>
           <a href="https://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
             <img src="https://storage.ie6countdown.com/assets/100/images/banners/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
          </a>
        </div>
       <![endif]-->
      <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/normalize.css" />
    	<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
      <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/prettyPhoto.css" />
      <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'template_url' ); ?>/css/grid.css" />
      <link href='https://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'>
      <link href='https://fonts.googleapis.com/css?family=PT+Sans:700' rel='stylesheet' type='text/css'>
      <link href='https://fonts.googleapis.com/css?family=PT+Sans+Narrow:700' rel='stylesheet' type='text/css'>
    	<?php
    		/* We add some JavaScript to pages with the comment form
    		 * to support sites with threaded comments (when in use).
    		 */
    		if ( is_singular() && get_option( 'thread_comments' ) )
    			wp_enqueue_script( 'comment-reply' );
    
    		/* Always have wp_head() just before the closing </head>
    		 * tag of your theme, or you will break many plugins, which
    		 * generally use this hook to add elements to <head> such
    		 * as styles, scripts, and meta tags.
    		 */
    		wp_head();
    	?>
      <!--[if lt IE 9]>
      <style type="text/css">
        .border {
          behavior:url(<?php bloginfo('stylesheet_directory'); ?>/PIE.php)
          }
      </style>
      <![endif]-->
    
      <script type="text/javascript">
      	// initialise plugins
    		jQuery(function(){
    			// main navigation init
    			jQuery('ul.sf-menu').superfish({
    				delay:       <?php echo of_get_option('sf_delay'); ?>, 		// one second delay on mouseout
    				animation:   {opacity:'<?php echo of_get_option('sf_f_animation'); ?>',height:'<?php echo of_get_option('sf_sl_animation'); ?>'}, // fade-in and slide-down animation
    				speed:       '<?php echo of_get_option('sf_speed'); ?>',  // faster animation speed
    				autoArrows:  <?php echo of_get_option('sf_arrows'); ?>,   // generation of arrow mark-up (for submenu)
    				dropShadows: <?php echo of_get_option('sf_shadows'); ?>   // drop shadows (for submenu)
    			});
    
    			// prettyphoto init
    			jQuery("a[rel^='prettyPhoto']").prettyPhoto({
    				animation_speed:'normal',
    				theme:'facebook',
    				slideshow:5000,
    				autoplay_slideshow: false
    			});
    
    			// easyTooltip init
    			jQuery("a.tooltip, .social-networks li a").easyTooltip();
    
    			//
    			jQuery(".footer-area-1 ul li:even").addClass("even");
    
    		});
    
    		// Init for audiojs
    		audiojs.events.ready(function() {
    			var as = audiojs.createAll();
    		});
    
          jQuery(document).ready(function(){
             jQuery('#slider-code').tinycarousel();
          });
    
      </script>
    
    	<script type="text/javascript">
          jQuery(document).ready(function() {
    			jQuery("#slider").hover(function(){
    			  jQuery(this).find(".nivo-caption").stop().animate({right: "0"}, 700 );
    			},function(){
    			  jQuery(this).find(".nivo-caption").stop().animate({right: "-294"}, 700 );
    			});
          });
       </script>
    
      <script type="text/javascript">
    		jQuery(window).load(function() {
    			// nivoslider init
    			jQuery('#slider').nivoSlider({
    				effect: '<?php echo of_get_option('sl_effect'); ?>',
    				slices:<?php echo of_get_option('sl_slices'); ?>,
    				boxCols:<?php echo of_get_option('sl_box_columns'); ?>,
    				boxRows:<?php echo of_get_option('sl_box_rows'); ?>,
    				animSpeed:<?php echo of_get_option('sl_animation_speed'); ?>,
    				pauseTime:<?php echo of_get_option('sl_pausetime'); ?>,
    				directionNav:<?php echo of_get_option('sl_dir_nav'); ?>,
    				directionNavHide:<?php echo of_get_option('sl_dir_nav_hide'); ?>,
    				controlNav:<?php echo of_get_option('sl_control_nav'); ?>,
    				captionOpacity:<?php $sl_caption_opacity = of_get_option('sl_caption_opacity'); if ($sl_caption_opacity != '') { echo of_get_option('sl_caption_opacity'); } else { echo '0'; } ?>
    			});
    		});
    	</script>
      <!-- Custom CSS -->
    	<?php if(of_get_option('custom_css') != ''){?>
      <style type="text/css">
      	<?php echo of_get_option('custom_css' ) ?>
      </style>
      <?php }?>
    
      <style type="text/css">
    		/* Body styling options */
    		<?php $background = of_get_option('body_background');
    			if ($background != '') {
    				if ($background['image'] != '') {
    					echo 'body { background-image:url('.$background['image']. '); background-repeat:'.$background['repeat'].'; background-position:'.$background['position'].';  background-attachment:'.$background['attachment'].'; }';
    				}
    				if($background['color'] != '') {
    					echo 'body { background-color:'.$background['color']. '}';
    				}
    			};
    		?>
    
      	/* Header styling options */
    		<?php $header_styling = of_get_option('header_color');
    			if($header_styling != '') {
    				echo '#header {background-color:'.$header_styling.'}';
    			}
    		?>
    
    		/* Links and buttons color */
    		<?php $links_styling = of_get_option('links_color');
    			if($links_styling) {
    				echo 'a{color:'.$links_styling.'}';
    				echo '.button {background:'.$links_styling.'}';
    			}
    		?>
    
    		/* Body typography */
    		<?php $body_typography = of_get_option('body_typography');
    			if($body_typography) {
    				echo 'body {font-family:'.$body_typography['face'].'; color:'.$body_typography['color'].'}';
    				echo '#main {font-size:'.$body_typography['size'].'; font-style:'.$body_typography['style'].';}';
    			}
    		?>
      </style>
    </head>
    Forum: Plugins
    In reply to: WooCommerce
    Thread Starter nicolethompson8

    (@nicolethompson8)

    OK I have actually managed to pull this off to a certain extent, by finding some similar code to the post I linked above, I changed “int” to “float” in a few places in “woocommerce-functions.php”.

    This has worked, on single product pages my quantities are now in decimal form and I can type in whatever decimal I want then add it to my cart successfully. It even reflects the correct decimal quantities (and multiplied prices) when you navigate to the cart and continues to preserve the decimal quantity and correct price after you proceed to checkout….

    …. BUT, the minute you “update” the cart the decimal is lost and it returns to be a whole integer number (e.g. if my decimal was 6.9 then it returns 6 as the quantity).

    Any idea what I can now edit to preserve the decimals when the cart is updated, please?

Viewing 5 replies - 1 through 5 (of 5 total)