powerj
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Accordian jumping to top of pageThnx
Forum: Developing with WordPress
In reply to: Accordian jumping to top of pageThank @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; }Forum: Developing with WordPress
In reply to: Custom Post Type RewriteWondering 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?
Forum: Developing with WordPress
In reply to: Custom Post Type RewriteHow good are Yoast SEO breadcrumbs! Wow, can’t believe I haven’t used them before
Forum: Developing with WordPress
In reply to: Custom Post Type RewriteOh 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
Forum: Fixing WordPress
In reply to: Add menu classes to a list<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>Forum: Fixing WordPress
In reply to: $_GET taxonomy from URLAwesome. Thanks Jacob. Appreciate you taking the time.
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%; }Forum: Fixing WordPress
In reply to: Genesis Sandbox Featured Posts – Add custom fieldsWorks a treat! Thanks for all your help
Forum: Fixing WordPress
In reply to: Genesis Sandbox Featured Posts – Add custom fieldsOK 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>'; } }Forum: Fixing WordPress
In reply to: Genesis Sandbox Featured Posts – Add custom fieldsNo 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>'; } }Forum: Fixing WordPress
In reply to: Genesis Sandbox Featured Posts – Add custom fieldsHi 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?
Forum: Plugins
In reply to: [SNY Auto Featured Image] Can't load imageSwapped to this plugin and works great https://wordpress.org/plugins/quick-featured-images/
Thanks for the fast update
? So the single event will be back