Tagged: x
-
AuthorPosts
-
July 1, 2016 at 10:38 pm #1069242
OmidParticipantHi!
I had some customization to set my own fonts and functions before. Now after upgrade to the latest version I receive some errors due to missing some variables and indexes!
Could you please guide me to debug them?
Thanks in advance
OmidJuly 1, 2016 at 10:40 pm #1069244
OmidParticipantThis reply has been marked as private.July 1, 2016 at 11:17 pm #1069262
ThaiModeratorHi There,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
July 1, 2016 at 11:24 pm #1069263
OmidParticipantThis reply has been marked as private.July 2, 2016 at 12:58 am #1069289
ChristopherModeratorHi there,
The way you implemented the font is not quite right. Please follow this link : https://community.theme.co/forums/topic/merriweather-google-font-problem/#post-219525
Hope it helps.
July 2, 2016 at 4:34 am #1069425
OmidParticipantHi Christopher,
I knew this solution but to handle fonts from “Customizer” I need to manipulate data.php inside of font folder. Before 4.5 version it worked like a charm but currently my modification return some errors.
this a piece of change which I had made to control my own fonts from Customizer:'timesnewroman' => array( 'source' => 'system', 'family' => 'Times New Roman', 'stack' => '"Nassim", Georgia, serif', 'weights' => array( '400', '400italic' ) ),which anywhere I choosed “timesnewroman” as active font, it retuned content with “Nassim” font.
Above trick is still working but I do not know how wipe out those errors.
Thanks
July 2, 2016 at 5:52 am #1069472
ChristopherModeratorHi there,
Please connect to FTP account and change
define('WP_DEBUG', true);todefine('WP_DEBUG', false);in wp-config.php file.Hope it helps.
July 4, 2016 at 10:35 pm #1072353
OmidParticipantHi,
I do not like to disable the debug mode. Currently I have changed fonts to one of the available google fonts; The font is changed successfully but I still receive those errors. Could you please help me to reset my font settings ( from DB or any other options) ?
Regards
July 4, 2016 at 10:39 pm #1072354
OmidParticipantThis reply has been marked as private.July 5, 2016 at 2:22 am #1072485
Paul RModeratorHi Omid,
Please change your x_icon_entry_meta code(~line number 260 – 278) – http://screencast.com/t/EMZFpwmDC
with this.function x_icon_entry_meta() { $author = sprintf( '<span><i class="x-icon-pencil" data-x-icon=""></i> %s</span>', get_the_author() ); // // 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 ) ) . '"><i class="x-icon-bookmark" data-x-icon=""></i> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%s</span>', 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 ) ) . '"><i class="x-icon-bookmark" data-x-icon=""></i> ' . $category->name . '</a>' . $separator; } $categories_list = sprintf( '<span>%s</span>', 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 = sprintf( '<span><a href="%1$s" title="%2$s" class="meta-comments"><i class="x-icon-comments" data-x-icon=""></i> %3$s</a></span>', esc_url( $link ), esc_attr( sprintf( __( 'Leave a comment on: “%s”', '__x__' ), $title ) ), $text ); } else { $comments = ''; } $date = sprintf( '<span><time class="entry-date" datetime="%1$s">%2$s</time></span>', esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date( 'l / j M, Y' ) ) ); if ( x_does_not_need_entry_meta() ) { return; } else { printf( '<p class="p-meta">%1$s%2$s</p>', $author, $date, $categories_list, $comments ); } }Hope that helps
July 5, 2016 at 4:13 am #1072618
OmidParticipantThis reply has been marked as private.July 5, 2016 at 4:33 am #1072653
ChristianModeratorThose are just notices and will not hinder website functionality. Please turn off WP debugging. See http://www.inmotionhosting.com/support/website/wordpress/turning-on-wordpress-debugging for more details.
You should turn off debugging when your site is live as it is a security risk.
Thanks.
July 5, 2016 at 5:27 am #1072689
OmidParticipantYeah, I see but I would run clean code to ensure all modules are working well with the last modifications. So I would solve these errors before turning off debug mode.
Thanks in advance.
OmidJuly 5, 2016 at 6:15 am #1072758
Paul RModeratorHi Omid,
I was able to fix the error.
Kindly check in your end.
Thanks
July 6, 2016 at 12:57 am #1074222
OmidParticipantHi Paul,
Thank you so much!
Best Wishes
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1069242 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
