Clarion Technologies
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: increasing container widthHi,
In Style.css of your active theme.
Thanks
Forum: Fixing WordPress
In reply to: style.css is not updating in wordpressHello Ab Ba,
Can you please try once by clearing the browser cache.
Thanks
Forum: Fixing WordPress
In reply to: How to wp_enqueue_script in child theme's functions.php?Hello jishasanal,
Please try using below code
function theme_js() { wp_register_script('custom_script',get_stylesheet_directory_uri() . '/custom_js/jquery.js',array('jquery'),'1.0' ); wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' ); // enqueue the script wp_enqueue_script('custom_script'); } add_action('wp_head', 'theme_js');Thanks
Forum: Fixing WordPress
In reply to: Archive template doesn't work after changing number og postsHello radojica,
Remove ‘$query_string’ and just add single parameter post_type=”recipes”.
Thanks
Forum: Fixing WordPress
In reply to: Archive template doesn't work after changing number og postsHello radojica,
Please try by removing the ‘$query_string’ parameter from your query_posts.
Thanks
Hello jaredheath,
Please Go to your permalink setting page select the custom Structure and add the below line in textbox and save the changes.Now your single post url will be site.com/news/post-name.Please check.
/news/%postname%/Thanks
Forum: Fixing WordPress
In reply to: Strange WidgetYour Welcome.. 🙂
Forum: Fixing WordPress
In reply to: Getting featured image header to re sizeHi,
You can try the following media queries for the header image to make it responsive.
@media only screen and (max-width: 800px) { .featured-image{ background-repeat:no-repeat; background-position: top center; background-size: 100%; height: auto; width: 100% } }Thanks
Forum: Fixing WordPress
In reply to: Displaying custom posts only if custom meta box date is not expiredHi,
Please try the following.
<?php while(have_posts() ) : the_post(); $thumb = wp_get_attachment_url( get_post_thumbnail_id($post->ID) ); $discount = get_post_meta($post->ID, '_single_discount', true); $date = get_post_meta($post->ID, '_single_date', true); $code = get_post_meta($post->ID, '_single_code', true); $url = get_post_meta($post->ID, '_single_url', true); $daysleft = round( ($date-time()) / 24 / 60 / 60); if($daysleft >= 0) { ?> <div class="coupon-date"> <?php if($date == '')_e('Хүчинтэй', 'Couponize'); else if($daysleft <= 0) _e('Дууссан', 'Couponize'); else echo sprintf( _n('%d day left.', '%d Хоног Үлдсэн.', $daysleft, 'Couponize'), $daysleft ); ?> </div> <?php } endwhile; ?>Thanks
Forum: Themes and Templates
In reply to: Changed Themes and can't reverse!Hello dbrazzell,
Please clear your browser cache and check it again it may browser cache issue.
Thanks
Forum: Fixing WordPress
In reply to: increasing container widthHi,
You can target the body class with page ID and increase the width of the container.
You can use something like this.
.page-id-1908 ,entry-content{ width: 800px !important; }Thanks
Forum: Themes and Templates
In reply to: Can't make is_home function work properlyHello fakurkr,
Please use the function call wp_reset_query() before the conditional tag to solve this issue of WordPress’s is_home() || is_front_page() is not working.
Thanks
Forum: Fixing WordPress
In reply to: Facebook not registering in site statsHi,
Had you used any plugin for this? If yes can you please provide the plugin name or link?
Also had you recently installed any plugin or had made changes to some of the files?
Thanks
Forum: Fixing WordPress
In reply to: Not possible to log in on WordPressHi,
Do you get any error while logging in?
Thanks
Forum: Fixing WordPress
In reply to: Strange WidgetHi,
Then please check your sidebar.php file of the active theme and also the functions.php file.
Thanks