Gorakh Shrestha
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Pages and Posts@fbpostvacancy,
Simply create a category for homepage like homepage-category and just fetch only that category so there will not be other posts from ABC.. category.How did you change permalink setting ? I can see something wrong in your URL
https://www.fdrr.eu/index.php//produs/dormitor-fdrr-1551/after index.php there are two //
Forum: Fixing WordPress
In reply to: How do I remove a featured image thumbnail from a post?I can’t go through the link you have given because there is some error in you functions.php but if you wish to remove post thumbnail option in backend. Please add following lines of code in your functions.php.
add_action('do_meta_boxes', 'change_image_box'); function change_image_box() { remove_meta_box( 'postimagediv', 'post', 'side' ); }
Forum: Fixing WordPress
In reply to: Pages and PostsAs I understand you have to create categories to manage post. You will have ABC category which you are going to list in ABC page. Or if you have similar layout for all kinds of post then use archive.php or category.php
Forum: Themes and Templates
In reply to: Child Theme done but style.css is emptyDon’t forgot to enqueue parents css or simply import in child style.css file.
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'parent-style', get_template_directory_uri() . '/style.css' ); } ?>
or
@import url('../parent_theme_folder/style.css');
Forum: Hacks
In reply to: Need php code to hide widget on certain pagesIf you have to hide in a page template simply use the following code.
if ( ! is_page_template( 'template-microsite.php' ) ) { floating_social_media_links(); }
I hope this will help you and don’t forgot to change php file name as you have.
Forum: Hacks
In reply to: Need php code to hide widget on certain pagesIf you have to hide in a page template simply use the following code.
if ( ! is_page_template( 'template-microsite.php' ) ) { floating_social_media_links(); }
I hope this will help you.