Forum Replies Created

Viewing 15 replies - 16 through 30 (of 87 total)
  • Thread Starter powerj

    (@powerj)

    Thnx

    Thread Starter powerj

    (@powerj)

    Thank @bcworkz I really appreciate your help.

    Site is currently local but should be going to test server in the next couple of days.

    Here is the CSS code

    .single-venues {
        .entry-footer {
            margin-top: 20px;
        }
    }
    #faq_container {
      border: 1px solid $color6;
      margin-bottom: 10px;
        margin-top: 20px;
      padding: 10px 15px;
    }
    
    #faq_container:hover {
        background-color: $color4;
        color: $color2;
    }
    
    .faq_question {
      margin: 0px;
      padding: 0px 0px 5px 0px;
      display: inline-block;
      cursor: pointer;
      display: table;
    }
    
    .question {
      margin-bottom: 5px;
      display: table-cell;
      width: 100%;
    }
     
    .faq_answer_container {
      height: 0px;
      overflow: hidden;
    padding: 0 10px;
    font-style: italic;
    }
    
    .accordion-button-icon {
      display: table-cell;
      line-height: inherit;
      opacity: .5;
      filter: alpha(opacity = 50);
      padding-left: 15px;
      vertical-align: middle;
    }
    
    .plus:after {
        content: '+';
        font-weight: bold;
        font-size: 24px;
        font-size: 2.4rem;
        line-height: 1;
        color: $color6;
    }
    
    .minus:after {
        content: '-';
        font-weight: bold;
        font-size: 24px;
        font-size: 2.4rem;
        line-height: 1;
        color: $color6;
    }
    
    Thread Starter powerj

    (@powerj)

    Wondering if you can shed some light… I’m wondering if my thinking is faulty somewhere.

    I’ve read lots of the Yoast articles (particular on the new primary category) but I don’t really understand why it works the way it does.

    I have custom post type events – the URL for an individual event is http://www.website.com.au/postname

    I have a visual navigation on the front page that links to various archive pages of event types.

    If someone clicks on community events, they get breadcrumb home/events/community-events and if they click through on one of the events they get breadcrumb home/events/community-events/postname – great user experience. But sometimes it doesn’t work. If the event has multiple categories say ‘community-event’ and ‘entertainment’ and entertainment is the primary category – once you click from the community events archive page the event will have the breadcrumb home/events/entertainment/postname So if the user wants to click back to the archive page to keep looking through the community events, they can’t – that to me is a bad user experience.

    Am I doing something wrong – is it bad to have posts in multiple categories?

    Thread Starter powerj

    (@powerj)

    How good are Yoast SEO breadcrumbs! Wow, can’t believe I haven’t used them before

    Thread Starter powerj

    (@powerj)

    Oh thanks so much.

    I’m using out of the box Genesis breadcrumbs – so I might try the Yoast SEO ones and failing that I guess I’ll have to learn how to edit myself.

    many thanks

    Thread Starter powerj

    (@powerj)

    <ul class="category-menu menu">
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt;?>" title="Show All">Show All</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc4&departments=' . $dpt;?>" >Loc4</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc3&departments=' . $dpt;?>" >Loc3</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc2&departments=' . $dpt;?>" >Loc2</a></li>
            <li class="button menu-item"><a href="<?php echo esc_url( $url ) . '/staff/' . $dpt .'/?offices=loc1&departments=' . $dpt;?>" >Loc1</a></li>
    </ul>
    Thread Starter powerj

    (@powerj)

    Awesome. Thanks Jacob. Appreciate you taking the time.

    Thread Starter powerj

    (@powerj)

    The only way I could find to fix this problem was to apply the following css – which isn’t an ideal solution but it worked

    aside#genesis-sidebar-primary .one-third {
        width: 100%;
    }
    Thread Starter powerj

    (@powerj)

    Works a treat! Thanks for all your help

    Thread Starter powerj

    (@powerj)

    OK I have it working – the plugin is based on the Genesis Featured Widget Amplified so I looked through their documentation – found this good article

    One small thing I still can’t get is there is 2 instances of the widget ‘used-equipment’ and ‘used-equipment-for-sale’ but I can’t seem to add an OR || to the IF statement.

    // Add custom fields to Used Equipment Widgets
    add_action( 'gsfc_after_post_content', 'wt_used_equip_custom_fields' );
    function wt_used_equip_custom_fields($instance) {
    	$year = get_field( 'year' );
    	$hours = get_field( 'hours' );
    	$price = get_field( 'price' );
    
    if ( $instance['custom_field'] == 'used-equipment') {
    	echo '<div class="equip-descrip"><p>';
    	echo $year . ', ' . $hours . ' hours</p>';
    	echo '<div class="used-price">';
    	   if ( get_field( 'price' ) ) :
    	       echo '$' . number_format( ( get_field( 'price' ) ), 0, '.', ',' ) . ' + GST';
    	   endif;
    	echo '</div>';
    	echo '<a class="button see-details" href="' . the_permalink() . '">See Details</a>';
    	echo '</div>';
        }
    }
    Thread Starter powerj

    (@powerj)

    No that doesn’t work. Its custom post type ‘used’ so I think it would be something more like this, but it doesn’t work either

    // Add custom fields to Used Equipment Widgets
    add_filter( 'gsfc_after_post_content', 'wt_used_equip_custom_fields' );
    function wt_used_equip_custom_fields() {
    	$year = get_field( 'year' );
    	$hours = get_field( 'hours' );
    	$price = get_field( 'price' );
    
    if ( is_singular( 'used' ) ) {
    	echo '<div class="equip-descrip"><p>';
    	echo $year . ', ' . $hours . ' hours</p>';
    	echo '<div class="used-price">';
    	   if ( get_field( 'price' ) ) :
    	       echo '$' . number_format( ( get_field( 'price' ) ), 0, '.', ',' ) . ' + GST';
    	   endif;
    	echo '</div>';
    	echo '<a class="button see-details" href="' . the_permalink() . '">See Details</a>';
    	echo '</div>';
       }
    }
    Thread Starter powerj

    (@powerj)

    Hi Paul,

    Thanks for those corrections – yes it should be permalink, not shortlink (not sure what I was thinking there).

    My main problem is that the gsfc_after_post_content filter is adding the html to all instances of the Genesis Sandbox Featured Content Widget. ie. I’m using the widget for 3 different areas. Two of them are for used equipment (where I need the additional custom fields added) and the third is to display news articles. At the moment the filter is adding the custom fields to the news articles and I don’t want it there. How can I tell the filter which instances of the widget to target?

    Thread Starter powerj

    (@powerj)

    Swapped to this plugin and works great https://wordpress.org/plugins/quick-featured-images/

    powerj

    (@powerj)

    Thanks for the fast update

    ? So the single event will be back

Viewing 15 replies - 16 through 30 (of 87 total)