Aashish
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Layout error on Enfold Theme Dislays as 1 column to the left@ KirstyLouise:
You are welcome!
I happy for your site is back to live & your issues related to your website are sorted out.
Regards,
AashishForum: Themes and Templates
In reply to: Layout error on Enfold Theme Dislays as 1 column to the leftHonestly I cannot suggest you exact fix, but I have one observation which I would like to share.
For some reason
https://www.australbm.com.au/wp-content/themes/enfold.303/js/
is redirected to
https://www.australbm.com.au/js/
—
https://www.australbm.com.au/wp-content/themes/enfold.303/css/
is redirected to
https://www.australbm.com.au/css/And so all the above mentioned CSS/JS links are rendered as 404 error page.
==
Not sure how these links are redirected as of now, but please check if any of the plugin you have enabled causes this redirection.Forum: Hacks
In reply to: Query doesn't work in WPDB but works in phpmyadminHi,
I have a small suggestion here, just try & include the prepare statement within
$wpdb->query();
I believe this would execute your query. Following is the modified query statement for reference:
$wpdb->show_errors(); $testQuery = $wpdb->query( $wpdb->prepare("SELECT * FROM $table_name WHERE service_id = %d AND token = %s" , $service_id, $token ) ); $testResult = $wpdb->get_results($testQuery,ARRAY_A); echo "<pre>testQuery\n$testQuery\n"; echo "testResult: "; print_r($testResult); echo "db error:" . $wpdb->last_error; echo "</pre>";
Try this solution!
–
Regards!Forum: Themes and Templates
In reply to: Layout error on Enfold Theme Dislays as 1 column to the leftHi,
After checking your site, it has been observed that, the css files are not included in the site.
There are about 29 404 errors. You will have to address those errors. I have enlisted some files which are currently being rendered as 404 errors. Try to fix those & test.
https://www.australbm.com.au/css/shortcodes.css?ver=2
https://www.australbm.com.au/css/layout.css?ver=2
https://www.australbm.com.au/css/grid.css?ver=2
https://www.australbm.com.au/js/aviapopup/magnific-popup.css?ver=1
https://www.australbm.com.au/js/mediaelement/skin-1/mediaelementplayer.css?ver=1
https://www.australbm.com.au/css/custom.css?ver=2
https://www.australbm.com.au/css/print.css?ver=1
https://www.australbm.com.au/config-layerslider/LayerSlider/static/css/layerslider.css?ver=5.3.2
Hope this information helps. All the best.
Regards!
Forum: Themes and Templates
In reply to: Display header on 'single/php'Hi
I thought you already were using a child theme, so I suggested to make changes in header file directly.
Also, as per my above comment, in header.php file, this update would have helped to fix the issue:
replacing following block:
/*if ( is_home() || is_front_page() ) { $header_image = get_header_image(); if ( $header_image ) : ?> <div class="header-image"> <?php if( get_theme_mod( 'kvarken_header_image_link' ) <> '') { echo '<a href="' . get_theme_mod( 'kvarken_header_image_link' ) . '">'; } ?> <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /> <?php if( get_theme_mod( 'kvarken_header_image_link' ) <> '') { echo '</a>'; } ?> </div> <?php endif; } */
with
/*if ( is_home() || is_front_page() ) { */ $header_image = get_header_image(); if ( $header_image ) : ?> <div class="header-image"> <?php if( get_theme_mod( 'kvarken_header_image_link' ) <> '') { echo '<a href="' . get_theme_mod( 'kvarken_header_image_link' ) . '">'; } ?> <img src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" /> <?php if( get_theme_mod( 'kvarken_header_image_link' ) <> '') { echo '</a>'; } ?> </div> <?php endif; /* } */
I apologize for not being specific in previous comments.
Forum: Themes and Templates
In reply to: Display header on 'single/php'Ok, you can revert back the changes I had suggested in previous comment.
But before that, Just share header.php code if you could. I was curious to know what would be the cause of this issue.
Forum: Themes and Templates
In reply to: Display header on 'single/php'Could you comment out code on line # 37 & line # 56
if ( is_home() || is_front_page() ) {
statementthis will enable the visibility of header image on all pages I believe. But we need to test if it works first. So have a back up of your code first before trying.
Forum: Themes and Templates
In reply to: Display header on 'single/php'After having reviewed the link, it is observed that & single.php file I think the issue is not related to single.php file
may be we need to set few parameters from admin to display certain section in header, after checking source code of the page it was observed that div id header does not contain any contents.
<div id="header"></div>
So most probably you will have to set theme parameters such as :
kvarken_logo_header
kvarken_logo
etc.May be this would the cause of the issue.
Please let me know if this helps.
All the best!Forum: Hacks
In reply to: Set a posts URL to an archive page?Hi jeremy,
For setting up redirection to respective archive page link, we can attach an action hook,
I have tried to create a function for your solution but I have not tested it, you can modify the function as per your requirement.
function search_filter($query) { if ( !is_admin() && $query->is_main_query() ) { if ($query->is_search && is_single('movie')) { $query->set('post_type_archive', array( 'movie_category' ) ); } } } add_action('pre_get_posts','search_filter');
In the above code:
movie – custom post type
movie_category – custom post type taxonomyHope this solution would help, let me know if any more inputs are required from my end I will be happy to help.
—
Regards!Forum: Themes and Templates
In reply to: Display header on 'single/php'Hi mithical,
As per very basics of WordPress, to integrate header in a template file of any theme, we generally use following function.
<?php get_header(); ?>
This function call first checks if header.php template file is in the active theme or not.
If presentheader.php
file is loaded or else file from location/wp-includes/theme-compat/header.php
is loaded.Hope this piece of information serves to be a solution for your issue.
—
Regards!