PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

remove price display on option field

  1. Hi there,

    I have renewed my licence for the year so I thought I would try and sort out one problem which really bugs me :)

    Basically I was wandering if it's possible to remove the small price displayed next to each option on the drop down box.

    As you can see when you click on the packaging option field on the following page:

    http://eha-duplication.co.uk/cd-duplication/

    Spindle tub
    PVC Wallet +£0.10
    Self Adhesive PVC Wallet +£0.12

    How can I get rid of the little price which displays on the right?

    any help would be much appreciated! :)

    Posted 12 years ago on Monday July 16, 2012 | Permalink
  2. Thanks for renewing, we appreciate it! Take a look here:
    http://www.gravityhelp.com/documentation/page/Gform_format_option_label

    Posted 12 years ago on Monday July 16, 2012 | Permalink
  3. HI Rob,

    ah ok this looks like it will solve it!

    cheers

    Sorry to sound stupid but what exactly would I need to replace with that code?

    I dont want to mess it up :)

    thanks for your time

    Ewan

    Posted 12 years ago on Tuesday July 17, 2012 | Permalink
  4. You wouldn't replace anything, you would just need to place one of the examples into your site appropriately. Take a look at this:
    http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F

    Let me know if you get stuck.

    Posted 12 years ago on Tuesday July 17, 2012 | Permalink
  5. Hi there,

    Thanks for your post

    sorry for the late reply

    I'm still slightly confused as to what I need to do.. sorry :)

    Where can you edit the gravity forms plugin ...can you do this within wordpress or on your server?

    thanks for your time

    Posted 12 years ago on Monday August 13, 2012 | Permalink
  6. David Peralty

    In your theme's header.php file you just need to add the code listed in the example entitled: "The following example disables the option pricing, displaying only the option label."

    Posted 12 years ago on Monday August 13, 2012 | Permalink
  7. Right ok

    I have opened my header.php file

    Where would I need to place the code?

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    
    	<title><?php wp_title() ?></title>
    
        <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" />
        <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php if ( get_option(PREFIX.'_feedburner_url') <> "" ) { echo get_option(PREFIX.'_feedburner_url'); } else { echo get_bloginfo_rss('rss2_url'); } ?>" />
        <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
        <?php $template_directory = get_bloginfo('template_directory'); ?>
        <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' );  ?>
        <link type="text/css" rel="stylesheet" href="<?php echo $template_directory ?>/css/color_wine.css" />
        <?php wp_head(); ?>
    
       <?php include( THEME_MODULES . '/count_slider_image.php' ); ?>
    	<script type="text/javascript">
    		var slideTimeout    = <?php echo (get_option(PREFIX.'_homepage_slider_timeout')*1000); ?>;
    		var maxslidernumber = <?php echo $count; ?>
        </script>
    
    </head>
    
    <?php
    	global $catID;
    	$category = @get_the_category();
    	$catID = array();
    	foreach ( $category as $key => $val ) $catID[] = $category[$key]->cat_ID;
    ?>
    <body <?php body_class() ?>>
    
        <div class="header">
        	<div class="header_content">
            	<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('description'); ?>"><img class="logo png" src="<?php if ( get_option(PREFIX.'_logo') <> "" ) { echo get_option(PREFIX.'_logo'); } else { echo $template_directory ?>/images/logo.png<?php } ?>" alt="<?php bloginfo('name'); ?>" /></a>
                <!-- .logo -->  
    
    			<?php include( THEME_MODULES . '/page-nav.php' ); ?>
            	<!-- .main_menu -->  
    
            </div>
            <!-- .header_content -->
        </div>
    	<!-- .HEADER -->
    
    	<?php include( THEME_MODULES . '/featured.php' ); ?>

    Also my wordpress theme has a parent and child theme setup ... however this is just for style css stuff I believe? for functionality changes like this I would need to add them to the parent theme... correct?

    Posted 12 years ago on Wednesday August 22, 2012 | Permalink
  8. If you're using a child theme, don't modify the parent theme at all. If there is no header.php in your child theme, copy the header.php from the parent, and put it in the child folder. With no changes to it, it will function exactly as it did before, even though it's using a different header.php file automatically.

    You can insert that code into the header.php right at line 22 in the paste above.

    Posted 12 years ago on Wednesday August 22, 2012 | Permalink