Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1087006
    mattbuff5
    Participant

    I am attempting to implement a Sale Price into my Pricing Table Element.

    I have tried both of the methods described in the threads pasted below:
    https://community.theme.co/forums/topic/slash-through-prices-in-pricing-table/
    For the first attempt, nothing changed in my price.

    https://community.theme.co/forums/topic/add-red-strikethrough-on-priciing-table-column/
    For the second attempt, the strike through showed up but the weight of the line was very, very thin.

    Any assistance is appreciated.

    #1087007
    mattbuff5
    Participant
    This reply has been marked as private.
    #1087176
    Joao
    Moderator

    Hi There

    Your line trough doesn’t look thin on my end, please see image attached.

    Let us know if you still need help.

    Joao

    #1087359
    mattbuff5
    Participant

    I’ve gotten the slash method similar to this post:
    https://community.theme.co/forums/topic/slash-through-prices-in-pricing-table/

    I’ve added the CSS below and have set the class to slash-price… The slash part is working great. Now what I’m trying to do is under the slashed price, I want the new-price to display. It is displaying but the new-price styling is not applying to the price – i have $99 set … it should be 28px and red.
    I’ve also added this to the content input box in the pricing table – <label class=”new-price”>$99</label>
    Here are a few screen shots…
    http://prntscr.com/bt2gc0

    http://prntscr.com/bt2gp0

    .x-pricing-column-info .new-price {
        font-size: 28px;
        color: red;
    }
    
    .slash-price .x-price {
      position: relative;
      }
    .slash-price .x-price:after {
      content:"";
      display: block;
      height:4px;
      background-color:#c26267;
      position: absolute;
      width: 90px;
      left: calc(50% - 30px);
      bottom: calc(50% - 2px);
      -ms-transform: rotate(-30deg); /* IE 9 */
        -webkit-transform: rotate(-30deg); /* Chrome, Safari, Opera */
        transform: rotate(-30deg);
      }
    
    .x-pricing-column-info br {
        display: none;
    }

    Thanks for the assistance.

    #1087578
    mattbuff5
    Participant

    edit – removed to update previous question

    #1087794
    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! Upon checking your site, you seemed to have changed your styling to something different. Do you still need help with this issue? Thanks,

    #1087871
    mattbuff5
    Participant

    yes i still need help

    i don’t think i changed any styling

    #1088287
    Rad
    Moderator

    Hi there,

    Try something like this,

    .x-pricing-column label.new-price {
        font-size: 28px !important;
        color: red !important;
    }

    Thanks!

    #1088391
    mattbuff5
    Participant

    Rad –

    Thanks I tried that; however, it still did not work.

    Matt

    #1089076
    Jade
    Moderator

    Hi Matt,

    I went ahead and place the code that Rad suggested in the customizer and it seems to work fine.

    http://greaterthanyesterdaynutrition.com/nutrition-coaching/get-started/

    #1089195
    mattbuff5
    Participant

    So I see what I was doing different….
    I had this

    .x-pricing-column-info new-price {
        font-size: 28px !important;
        color: red !important;
    }

    You all entered this (which worked)

    .x-pricing-column label.new-price {
        font-size: 28px !important;
        color: red !important;
    }

    So the -info at the start of the class identifier was causing me issues.

    Thanks

    #1089222
    mattbuff5
    Participant

    Well I guess I’m stumped – I have to have the same statement in the css code twice to get it to take.
    This works:

    .x-pricing-column label.new-price {
        font-size: 40px !important;
        color: red !important;
    }
    
    .x-pricing-column label.new-price {
        font-size: 40px !important;
        color: red !important;
    }

    This does not work:

    .x-pricing-column label.new-price {
        font-size: 40px !important;
        color: red !important;
    }

    Any idea why?

    #1089629
    Friech
    Moderator

    Hi There,

    There is a syntax error on your custom CSS. Please look for this block on your custom css in customizer.

    .wpcf7 textarea {
        margin-bottom: 10px;
    	border:1px solid #DCAE1D;
        height: 180px;
        padding:2px 5px;
        border-radius:5px;
        font-size:14px;
        max-width: 400px;
      }
    }

    And remove that extra closing bracket.

    Hope it helps, Cheers!

    #1089876
    mattbuff5
    Participant

    Doh!
    Thanks, got it.

    #1089903
    Thai
    Moderator

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1087006 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>