Tagged: x
-
AuthorPosts
-
July 26, 2016 at 4:46 pm #1104202
danielktsParticipantHello there!
I need help in some adjustments on ethos carousel. I think you can help me!
1. Is there a way to make the carousel full-width (and so the landmark above)?
2. I’ve used a code in functions.php to translate the featured posts message “view post”, but it hasn’t translated the “View post” message in carousel, I think I need a different one.
3. I want to display post meta like the example in attachment, but containing the “user” icon too. (Author Date Category Comments).
4. I’ve tried to customize the “entry-title” in-post style using but got no success. Want to turn it green. Any hint?Thanks!!! 😀
July 27, 2016 at 1:56 am #1104696
FriechModeratorHi There,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation.
Cheers!
July 27, 2016 at 5:52 am #1104902
danielktsParticipantOps, sorry Friech, it is http://psicoenvolver.com.br
Thanks!
July 27, 2016 at 10:11 am #1105271
RupokMemberHi there,
Thanks for the URL. There is no post carousel on your site. Did you disable this?
July 27, 2016 at 11:15 am #1105388
danielktsParticipantActually I only want it on category pages, I forgot to mention that, sorry.
July 27, 2016 at 7:23 pm #1106102
LelyModeratorHi There,
I saw category slider and not post carousel. Are you referring to the slider below this headline:Artigos para os Pais?
1.) To make the green bar and slider fullwidth, please add the following CSS on Appearance > Customize > Custom > Edit Global CSS:
.category header.x-header-landmark { max-width: none; width: 100%; } .category h1.h-landmark { width: 88%; margin-left: auto; margin-right: auto; } .category .x-container>.offset { width: 88%; max-width: 1280px; } .category .x-container.max.width.main { width: 100%; max-width: none; }2.) Add the following code on your child theme’s functions.php file:
add_filter('gettext', 'translate_text' ); function translate_text($translated) { $translated = str_ireplace('View Post', "Replace with your View Post Translation", $translated); return $translated; }3.) Please also add the following code in your child theme’s functions.php code:
function x_ethos_entry_meta() { // // Author. // $author = do_shortcode(' [x_icon type="user"] ').sprintf( ' %1$s %2$s</span>', __( '', '__x__' ), get_the_author() ); // // Date. // $date = do_shortcode(' [x_icon type="calendar"] ').sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>', esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); // // Categories. // if ( get_post_type() == 'x-portfolio' ) { if ( has_term( '', 'portfolio-category', NULL ) ) { $categories = get_the_terms( get_the_ID(), 'portfolio-category' ); $separator = ', '; $categories_output = ''; foreach ( $categories as $category ) { $categories_output .= '<a href="' . get_term_link( $category->slug, 'portfolio-category' ) . '" title="' . esc_attr( sprintf( __( "View all posts in: “%s”", '__x__' ), $category->name ) ) . '"> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%1$s %2$s', __( 'In', '__x__' ), trim( $categories_output, $separator ) ); } else { $categories_list = ''; } } else { $categories = get_the_category(); $separator = ', '; $categories_output = ''; foreach ( $categories as $category ) { $categories_output .= '<a href="' . get_category_link( $category->term_id ) . '" title="' . esc_attr( sprintf( __( "View all posts in: “%s”", '__x__' ), $category->name ) ) . '"> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%1$s %2$s', __( 'In', '__x__' ), trim( $categories_output, $separator ) ); } // // Comments link. // if ( comments_open() ) { $title = apply_filters( 'x_entry_meta_comments_title', get_the_title() ); $link = apply_filters( 'x_entry_meta_comments_link', get_comments_link() ); $number = apply_filters( 'x_entry_meta_comments_number', get_comments_number() ); $text = ( 0 === $number ) ? 'Leave a Comment' : sprintf( _n( '%s Comment', '%s Comments', $number, '__x__' ), $number ); $comments = do_shortcode(' [x_icon type="comment-o"] ').sprintf( '<span><a href="%1$s" title="%2$s" class="meta-comments">%3$s</a></span>', esc_url( $link ), esc_attr( sprintf( __( 'Leave a comment on: “%s”', '__x__' ), $title ) ), $text ); } else { $comments = ''; } // // Output. // if ( x_does_not_need_entry_meta() ) { return; } else { printf( '<p class="p-meta">%1$s%2$s%3$s%4$s</p>', $categories_list, $author, $date, $comments ); } }4.) Are you referring to the title on single post page? If yes, use the following CSS:
.single-post .entry-title { color: #79B942; }If not, please clarify which title you want to turn green so we can be specific on our suggestion.
Hope this helps.
July 28, 2016 at 6:28 pm #1107843
danielktsParticipantThanks a lot Lely! All worked perfectly! You rule 🙂
July 28, 2016 at 11:29 pm #1108261
Prasant RaiModeratorGlad to hear that, feel free to get in touch with us regarding any further queries about the X Theme and Cornerstone.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1104202 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
