viper_iii
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: theme issue w/ woocommerceappreciate the response, but if merely to repeat the standard line of AT YOUR OWN RISK
– its implied… I got it.Really surprised you didn’t start with Child theme and here is the non-sense link
….elseif( is_page() ) { $explore_header_title = get_the_title();something tells me there is something in that line that I need to add above to get the proper title just not sure of the exact clean wording..
issue is woo uses post-type archive for the products page…
already had to do some CSS mods to get the layout where I wanted… due to archvive.php not responding to template change again due to post_typethen let dev know what can be added to his free theme to be woocommerce compatible…
am totally fine with this post being moved.. Can barely figure out this forum format…
Forum: Fixing WordPress
In reply to: theme issue w/ woocommercefound the location…
Explore: header-functions.php (inc/header-functions.php)
now to do some tweaking…function explore_header_title() { if( is_archive() ) { if ( is_category() ) : $explore_header_title = single_cat_title( '', FALSE ); elseif ( is_tag() ) : $explore_header_title = single_tag_title( '', FALSE ); elseif ( is_author() ) : /* Queue the first post, that way we know * what author we're dealing with (if that is the case). */ the_post(); $explore_header_title = sprintf( __( 'Author: %s', 'explore' ), '<span class="vcard">' . get_the_author() . '</span>' ); /* Since we called the_post() above, we need to * rewind the loop back to the beginning that way * we can run the loop properly, in full. */ rewind_posts(); elseif ( is_day() ) : $explore_header_title = sprintf( __( 'Day: %s', 'explore' ), '<span>' . get_the_date() . '</span>' ); elseif ( is_month() ) : $explore_header_title = sprintf( __( 'Month: %s', 'explore' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); elseif ( is_year() ) : $explore_header_title = sprintf( __( 'Year: %s', 'explore' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); elseif ( is_tax( 'post_format', 'post-format-aside' ) ) : $explore_header_title = __( 'Asides', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-image' ) ) : $explore_header_title = __( 'Images', 'explore'); elseif ( is_tax( 'post_format', 'post-format-video' ) ) : $explore_header_title = __( 'Videos', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-quote' ) ) : $explore_header_title = __( 'Quotes', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-link' ) ) : $explore_header_title = __( 'Links', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-gallery' ) ) : $explore_header_title = __( 'Gallery', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-chat' ) ) : $explore_header_title = __( 'Chat', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-audio' ) ) : $explore_header_title = __( 'Audio', 'explore' ); elseif ( is_tax( 'post_format', 'post-format-status' ) ) : $explore_header_title = __( 'Status', 'explore' ); else : $explore_header_title = __( 'Archives', 'explore' ); endif;can see a bit in there… basically the end if there is no $explore_header_title then name them all Archives…
nice… at least that what it looks like…
was thinking I’d add a small snipped to catch it… but then… nah.. just change the last one….
Forum: Fixing WordPress
In reply to: Theme Issue – My issue – Probably bothfixed that one by changing
<p><?php echo esc_html ( $service_description ); ?></p>to
<?php echo ( $service_description ); ?>Fixed and working correctly now
Forum: Fixing WordPress
In reply to: Theme Issue – My issue – Probably bothwas posting over in SW as well with some updated info:
https://community.spiceworks.com/topic/post/7683947
basically the way the theme is calling the post information?
using meta tag vs something else?/* Page Header */ $page_editional_title = get_post_meta( get_the_ID(), '_cmb_enhenyero_s_page_additional_title', true ); $page_short_description = get_post_meta( get_the_ID(), '_cmb_enhenyero_s_page_short_description', true ); $page_description = apply_filters( 'the_content', get_post_meta( get_the_ID(), '_cmb_enhenyero_s_page_description', true ) ); /* Service Content */ $service_contet_title = get_post_meta( get_the_ID(), '_cmb_enhenyero_service_contet_title', true ); $service_description = get_post_meta( get_the_ID(), '_cmb_enhenyero_service_description', true ); $service_images = get_post_meta( get_the_ID(), '_cmb_enhenyero_service_images', true ); $service_image_gallery = get_post_meta( get_the_ID(), '_cmb_enhenyero_service_image_gallery', true );<div class="container"> <?php if( IsNullOrEmptyString( $service_contet_title ) && IsNullOrEmptyString( $service_description ) ) { ?> <div class="clearfix"></div> <div class="smallspacer"></div> <div class="row"> <?php if ( count( $service_images ) > 0 && is_array( $service_images ) ) : ?> <div class="col-md-6 img"> <div id="imageSlider" class="carousel slide" data-ride="carousel"> <!-- Indicators --> <ol class="carousel-indicators"> <?php for( $j=0; $j < count( $service_images ); $j++ ) { ?><li data-target="#imageSlider" data-slide-to="<?php echo esc_attr( $j ); ?>" class="<?php if( $j == 0 ) { echo 'active'; } ?>"></li><?php } ?> </ol> <!-- Wrapper for slides --> <div class="carousel-inner" role="listbox"> <?php $i = 1; foreach ( (array) $service_images as $attachment_id => $attachment_url ) { ?> <div class="item<?php if( $i == 1 ) { echo ' active'; } ?>"> <?php echo wp_get_attachment_image( $attachment_id, 'thumb-555-347' ); ?> </div> <?php $i++; } ?> </div> </div> </div> <?php endif; ?> <div class="col-md-6"> <h4><?php echo esc_html ( $service_contet_title ); ?></h4> <p><?php echo esc_html ( $service_description ); ?></p> </div> </div> <?php- This reply was modified 8 years, 1 month ago by viper_iii.
Forum: Fixing WordPress
In reply to: Theme Issue – My issue – Probably bothDoesn’t matter which way I do it..
I used the visual editor
then simply used HTML – doesn’t matter which way it still shows the tags…Pretty sure its this darn theme… not written very well or has issues after upgrading wordpress – but hasn’t looked right for along time, long before I started helping him with it.