Gorakh Shrestha
Forum Replies Created
-
I think this problem happening due to the srcset attribut in your image. WordPress recently added this feature. Disable srcset using following hook in your function.php.
/*Disable srcset*/ add_filter( 'max_srcset_image_width', create_function( '', 'return 1;' ) );
Forum: Fixing WordPress
In reply to: Removing blue hyperlink from entire pageYou forgot to close
<a href="#">
tag in widget of Don’t Miss Anything We Post. Follow Us On Facebook!
Remove<a href="#">
after => Don’t Miss Anything We Post. Follow Us On Facebook!Forum: Fixing WordPress
In reply to: Images won't align center I've triedCopy and paste css from wrodpress site to your style.css.
https://codex.www.ads-software.com/CSS#WordPress_Generated_Classes
Hope this will help.Forum: Fixing WordPress
In reply to: "Fatal Error" after upgradeFirst disable this plugin. => Custom Post Type Taxonomy Sort Plugin master . Something must be wrong in that plugin.
Forum: Fixing WordPress
In reply to: How to make a link with .htmlChange your permalink setting from Settings > Permalinks .
Simply add .html like this => /%postname%.html/
https://prntscr.com/9n0vkbForum: Fixing WordPress
In reply to: change the "post added" value placeFirst thing you shouldn’t use html like that
and <p> tag.And change your code like below.
`if ( $yil == $buyil )
{
if ( $ay == $buay )
{
if ( $gun == $bugun )
{
echo “Added today.”;
}
else
{
$gunonce = $bugun – $gun;
if ( 6 < $gunonce )
{
$haftaonce = round( $gunonce / 7 );
echo ” added “.$haftaonce.” week ago.”;
}
else
{
if ( $gunonce == 1 )
{
echo “Added Yesterday.”;
}
else
{
echo” added “.$gunonce.” days ago.”;
}
}
}
}
else
{
$ayonce = $buay – $ay;
echo ” Added “.$ayonce.”months ago.”;
}
}
else
{
$yilonce = $buyil – $yil;
if ( $yilonce < 2 )
{
$ayonce = 12 – $ay + $buay;
echo ” Added “.$ayonce.”months ago.”;
}
else
{
echo ” added”.$yilonce.” years ago.”;
}
}`I hope this should work.
It seems like your homepage is redirecting to 404 page.
Forum: Themes and Templates
In reply to: Live Site Not Matching Admin View of WebsiteI think you forgot to enqueue ‘WOW’ jquery library.
Forum: Themes and Templates
In reply to: Cannot Get CSS Files to Enqueue CorrectlyI think there should not be space in your
wp_enqueue_style( 'css parent', get_template_directory_uri() . '/css/style.css' );
can you try all those name with _ or –
wp_enqueue_style( 'css-parent', get_template_directory_uri() . '/css/style.css' );
Forum: Hacks
In reply to: Arabic language around my Login Page PanelJust change your language from wordpress setting. https://prntscr.com/9kir8i
Forum: Fixing WordPress
In reply to: Contact form 7 on contact page is choppy. help?I think there must be some blank <p> tags in your code. Compress your contact form code using online tools.
Forum: Themes and Templates
In reply to: Modify a themeJust hide using css:
article#no-results { display: none; }
Forum: Themes and Templates
In reply to: Show Custom Post Types entries in Category DropDownJust replace your below code :
<?php wp_get_archives( array( 'type' => 'monthly', 'limit' => '6', 'format' => 'custom', ) ); ?>
with :
<ul> <?php $args = array( 'post_type'=>array('post','case-study'), 'posts_per_page'=>6, 'orderby' => 'date', 'order' => 'DESC', ); $query = new WP_Query($args); if($query->have_posts()): while($query->have_posts()): $query->the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; endif; wp_reset_postdata(); ?> </ul>
Forum: Fixing WordPress
In reply to: Media doesnt show image thumbnailsHi mganzer,
At the first disable all the plugins and check you media gallery. It it is ok there must be something wrong with your plugins. Enable one by one.
Forum: Fixing WordPress
In reply to: How do I remove a featured image thumbnail from a post?Hi davidx4,
It looks like you are using custom post type ‘review’. If you are using default WordPress post that will work fine otherwise you need to change the name of post type
add_action('do_meta_boxes', 'change_image_box'); function change_image_box() { remove_meta_box( 'postimagediv', 'review', 'side' ); }
Here second parameter in remove_post_box will be your post type name. Like ‘review’.