Home › Forums › Support › Help editing a hook for elements- no conditions This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by Tom. Viewing 4 posts - 1 through 4 (of 4 total) Author Posts July 31, 2018 at 4:38 pm #637352 Derek Hi can someone help me re-write this php for elements since the conditional tags are not needed? I don’t know how to write php code…I just copied this..I don’t know what to delete or how to format it. Thank you! <?php if ( function_exists('yoast_breadcrumb') && is_single() ) : ?> <div class="grid-container yoast-breadcrumb"> <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?> </div> <?php endif; ?> July 31, 2018 at 5:21 pm #637384 TomLead Developer Lead Developer Hi there, You’d just need this: <?php if ( function_exists('yoast_breadcrumb') ) : ?> <div class="grid-container yoast-breadcrumb"> <?php yoast_breadcrumb( '<p id="breadcrumbs">','</p>' ); ?> </div> <?php endif; ?> Then you’d need to set the Display Rules as “Posts > All Posts”. That should do it ๐ July 31, 2018 at 5:40 pm #637403 Derek Noted! Thank you. July 31, 2018 at 7:25 pm #637438 TomLead Developer Lead Developer No problem ๐ Author Posts Viewing 4 posts - 1 through 4 (of 4 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In