TT Themes
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [HappenStance] CSS MenuHi,
I found that if you put the code into your “functions.php” through the panel “Appearance > Editor”, it breaks the code. I recommend you to edit the “functions.php” via FTP instead.
Alternatively, you can use a different syntax for the PHP condition to prevent this error:
function happenstance_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) { ?> <div id="<?php echo $html_id; ?>" class="navigation" role="navigation"> <div class="navigation-inner"> <h2 class="navigation-headline section-heading"><?php _e( 'Post navigation', 'happenstance' ); ?></h2> <div class="nav-wrapper"> <p class="navigation-links"> <?php $big = 999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'prev_text' => __( '← Previous', 'happenstance' ), 'next_text' => __( 'Next →', 'happenstance' ), 'total' => $wp_query->max_num_pages, 'show_all' => true, 'add_args' => false ) ); ?> </p> </div> </div> </div> <?php } }Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [HappenStance] Row size too largeHi,
this issue is most probably related to a third-party plugin called Photo Gallery, because this plugin creates a table named “wp_bwg_theme”. Please check this support topic where could be useful information about this problem.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [MineZine] To show more than one image in postHi again Helle,
thank you for information. To get some space between the thumbnails, please put the following custom CSS into “Theme Options > Other Settings > Custom CSS”:
#content .attachment-thumbnail {margin-right: 10px;}Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [MineZine] To show more than one image in postHi Helle,
have you please inserted the images into your posts using the Add Media button as described in this manual? If so, can you see the images in the Visual Editor window when you are editing the post?
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [MineZine] To show more than one image in postHi Helle,
if you would like to display full posts on the Blog page, please select the option “Content” in “Theme Options > General Settings > Content/Excerpt Displaying”. If this is not what you are looking for, please post here a link to your website so I could view it.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [MineZine] header img insted of titleHi der-gee,
I am glad that I could help you!
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [HappenStance] CSS MenuHi,
to show all of the pages instead of a short list in the pagination, please put the following code into your child theme’s “functions.php”:
function happenstance_content_nav( $html_id ) { global $wp_query; $html_id = esc_attr( $html_id ); if ( $wp_query->max_num_pages > 1 ) : ?> <div id="<?php echo $html_id; ?>" class="navigation" role="navigation"> <div class="navigation-inner"> <h2 class="navigation-headline section-heading"><?php _e( 'Post navigation', 'happenstance' ); ?></h2> <div class="nav-wrapper"> <p class="navigation-links"> <?php $big = 999999999; echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'prev_text' => __( '← Previous', 'happenstance' ), 'next_text' => __( 'Next →', 'happenstance' ), 'total' => $wp_query->max_num_pages, 'show_all' => true, 'add_args' => false ) ); ?> </p> </div> </div> </div> <?php endif; }Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [BrickYard] how to remove all total comment from postYou are welcome!
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [BrickYard] how to remove all total comment from postHi,
to disable comments on your posts, please follow this guide.
To hide the comment counters, you can put this custom CSS into “Appearance > Customize > BrickYard General Settings > Custom CSS”:
#wrapper .post-info-comments {display: none;}Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [HappenStance] Why is featured image appearing twice?Hi,
to hide the featured image in the full post view, please select the option “Hide” in “Appearance > Customize > HappenStance Posts/Pages Settings > Display Featured Image on single posts”.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [SeaSun] Extra Social Media Buttons?You are welcome!
The Premium version already supports Instagram link in the header social media bar. The next update will be released probably in the second half of March. It is a major update where the Theme Options will be moved into the Customizer panel.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [WinterDream] Awaywego1.com journal photos not workingHi,
to show the full post content on the Latest Posts (Blog) page, please select the option “Content” in “Appearance > Customize > WinterDream Post Entries Settings > Content/Excerpt Displaying”.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [HappenStance] Cannot switch pages in search resultsHi,
which permalinks structure are you using please? Does the problem occur if you switch to a different permalinks structure? If you are using a custom permalinks structure, it might help if you edit the following code in “search.php”:
echo paginate_links( array( 'base' => str_replace( $big, '%#%', esc_url( get_pagenum_link( $big ) ) ), 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'prev_text' => __( '← Previous', 'happenstance' ), 'next_text' => __( 'Next →', 'happenstance' ), 'total' => $wp_query->max_num_pages, 'add_args' => false ) );in this way:
echo paginate_links( array( 'format' => '?paged=%#%', 'current' => max( 1, get_query_var('paged') ), 'prev_text' => __( '← Previous', 'happenstance' ), 'next_text' => __( 'Next →', 'happenstance' ), 'total' => $wp_query->max_num_pages, 'add_args' => false ) );I am going to remove the “base” argument in a future update as it is no longer necessary in the latest WordPress version, but it might break the URL addresses of search results with some permalinks structures.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [SeaSun] Extra Social Media Buttons?Hi,
please try to remove the “Tutorials” page from the Main Header Menu and put it again there. If you have changed its permalink, it might break the menu item.
Best regards,
Tomas TomanForum: Themes and Templates
In reply to: [SeaSun] Extra Social Media Buttons?Hi,
I will consider to add more social media options in the future updates. At this moment, you will need to create a child theme, upload your custom social media icons and hard-code your custom links into “header.php”. This code in “header.php” generates the default links:
<div class="header-icons"> <?php if ($seasun_options_db['seasun_header_facebook_link'] != ''){ ?> <a class="social-icon facebook-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_facebook_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_twitter_link'] != ''){ ?> <a class="social-icon twitter-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_twitter_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_google_link'] != ''){ ?> <a class="social-icon google-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_google_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_rss_link'] != ''){ ?> <a class="social-icon rss-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_rss_link']); ?>" target="_blank"></a> <?php } ?> </div>You will need to edit it in this way:
<div class="header-icons"> <?php if ($seasun_options_db['seasun_header_facebook_link'] != ''){ ?> <a class="social-icon facebook-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_facebook_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_twitter_link'] != ''){ ?> <a class="social-icon twitter-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_twitter_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_google_link'] != ''){ ?> <a class="social-icon google-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_google_link']); ?>" target="_blank"></a> <?php } ?> <?php if ($seasun_options_db['seasun_header_rss_link'] != ''){ ?> <a class="social-icon rss-icon" href="<?php echo esc_url($seasun_options_db['seasun_header_rss_link']); ?>" target="_blank"></a> <?php } ?> <a style="background-image: url(path-to-your-custom-linkedin-icon);" class="social-icon linedin-icon" href="your-linkedin-link" target="_blank"></a> </div>Best regards,
Tomas Toman