Ganesh Paygude
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Advanced Custom FieldPlease Check syntax error in function file may be “<?php” on line 11 not required.
Forum: Themes and Templates
In reply to: Advanced Custom FieldPut below code in your function.php file and remove old one.
<?php
/**
* Nova WP engine room
*
* @package nova-wp
*/
/**
* Initialize all the things.
*/require get_stylesheet_directory() . ‘/inc/init.php’;
add_filter( ‘woocommerce_product_tabs’, ‘nova_wp_product_tabs’ );function nova_wp_product_tabs( $tabs ) {
// ensure ACF is available
if ( !function_exists( ‘get_field’ ) )
return;$content = trim( get_field( ‘levering’ ) );
if ( !empty( $content ) ) {
$tabs[] = array(
‘title’ => ‘Levering’,
‘priority’ => 15,
‘callback’ => ‘nova_wp_levering’
);}
return $tabs;
}function nova_wp_levering() {
echo get_field( ‘levering’ );
}
require get_stylesheet_directory() . ‘/inc/init.php’;
add_filter( ‘woocommerce_product_tabs’, ‘nova_wp_product_tabs_second’ );function nova_wp_product_tabs_second( $tabs ) {
// ensure ACF is available
if ( !function_exists( ‘get_field’ ) )
return;$content = trim( get_field( ‘plantning_og_pasning’ ) );
if ( !empty( $content ) ) {
$tabs[] = array(
‘title’ => ‘Plantning og pasning’,
‘priority’ => 15,
‘callback’ => ‘nova_wp_plantning_og_pasning’
);}
return $tabs;
}function nova_wp_plantning_og_pasning() {
echo get_field( ‘plantning_og_pasning’ );
}Forum: Themes and Templates
In reply to: Advanced Custom FieldYou have declare the function ‘nova_wp_product_tabs’ twice one function cannot be declare more than once please rename the second function.
Forum: Themes and Templates
In reply to: [evolve] How to change position of title "search results for"Can you please share your site link.
Forum: Themes and Templates
In reply to: [Arcade Basic] Nav Bar Separator Lines In BetweenYou can apply border-right CSS for the nav elements.
Forum: Themes and Templates
In reply to: [AccessPress Lite] Mobile site difficultiesI have checked your Websites its working fine on my end now can you please clear cache.
Forum: Themes and Templates
In reply to: [AccessPress Lite] Mobile site difficultiesadd this code
#masthead .right-header {
display: block! important;
}Forum: Themes and Templates
In reply to: [AccessPress Lite] Mobile site difficultiesJust add below lines in style.css your problem will get fix
.header-text {
display: block! important;
}Forum: Themes and Templates
In reply to: Changing mobile CSS colorsForum: Fixing WordPress
In reply to: Post creation date X date of the postFor adding the custom field this plugin will help you
https://www.ads-software.com/plugins/advanced-custom-fields/
And in order to reorder the post by custom field you have use like
$args = array(
‘post_type’ => array( ‘post_type_1’, ‘post_type_2’, ‘post_type_3’, ‘post_type_4’, ‘post_type_5’ ),
‘posts_per_page’ => -1,
‘meta_key’ => ‘custom_field_name’,
‘orderby’ => ‘meta_value_num’,
‘order’ => ‘DESC’
);
$query = new WP_Query($args);Before Updating any theme first always take backup because update always overrides the custom changes that we have made.
Forum: Themes and Templates
In reply to: [Virtue] Category Images Too Small and Not AligningHello jysmith,
Please add below code in your function .php file
if ( function_exists( ‘add_image_size’ ) ) {
add_image_size( ‘cat-thumb’, 200, 200 );
}
with your width and height parameter and in tempplate file add the below code where you have call the images.
<?php if ( has_post_thumbnail()) the_post_thumbnail(‘cat-thumb’); ?>It definitely work for you.
Forum: Themes and Templates
In reply to: [Ascent] Site title wraps in headerAkubrin
Please this one it will definitely work
1)
body .site-header h1 {
font-size: 18px !important;
line-height: 18px !important;
}OR
2)
replace class=”col-sm-3″ by class=”col-sm-7″ of logo div wrap div and navigation wrap to class=”col-sm-5″ In header.php file in your theme but try th 1st solution firstHello
Yes Normally whole style sheet is get override If Not you can try by giving !important next to the css property For Example
body {
font-size:15px !important;
}This will definately work
Hello,
You Either can upload and different banner image for mobile and web view form admin for that you need to add one custom filed for adding banner for mobile view and in front end we you can give the condition or visibility classes of bootstrap to view it only in Mobile and web view.