Category : wordpress-theming

I trying to customize WP user dasboard and trying to delete/hide some features like admin bar links. With this code i trying to remove all useless stuff: add_action( ‘admin_bar_menu’, ‘remove_wp_nodes’, 999 ); function remove_wp_nodes() { global $wp_admin_bar; $wp_admin_bar->remove_node( ‘new-post’ ); $wp_admin_bar->remove_node( ‘new-link’ ); $wp_admin_bar->remove_node( ‘new-media’ ); $wp_admin_bar->remove_node( ‘comments’ ); $wp_admin_bar->remove_node( ‘new-content’ ); $wp_admin_bar->remove_menu( ‘new-page’ ); ..

Read more

Hi I want to do the blog part in my wordpress theme, I set up using static front page et blog page to display latest post. So in my home.php I have : <?php get_header(); ?> <section class="header–page"> <div class="header–img"> <?php the_post_thumbnail() ?> </div> <div class="container"> <h1><?php the_title() ?></h1> </div> </section> <?php get_footer(); ?> But ..

Read more

Hi I want to do the blog part in my wordpress theme, I set up using static front page et blog page to display latest post. So in my home.php I have : <?php get_header(); ?> <section class="header–page"> <div class="header–img"> <?php the_post_thumbnail() ?> </div> <div class="container"> <h1><?php the_title() ?></h1> </div> </section> <?php get_footer(); ?> But ..

Read more

So I have this message in my wordpress header. I would: Prevent linebreak. It breaks between variables. Style variables differently. One should be bold, the other italic. Get spaces in there after the icon. Thak you for any help. I don’t get it right…. <i class="fas fa-lg fa-map-marker-alt"></i><a href="my-accountedit-address" title="Your addresses"><?php echo $current_user->user_firstname, get_user_geo_country()?></a> Source: ..

Read more

I am using WordPress + Jet Engine with Custom Post Types and Forms. I am trying to redirect the user to their newly created posts where the permalink looks like /ads/my-new-ad. Despite there is a built-in (Notification settings) way to redirect to URLs after the ad submission, I have read on this GitHub issue there ..

Read more

Earlier i couldnt access the admin page using example.com/wp-admin so tried /wp-login.php. I have tried to delete the .htaccess file. I have tried resetting passwords from cpanel and have also defined the URLs in wp-config.php but can’t seem to figure out what the problem is. Any suggestions would be great. Login Page After hitting login ..

Read more

Here is my functions.php /** * Enqueue scripts and styles. */ function maxprofessional_scripts() { wp_enqueue_style( ‘maxprofessional-style’, get_stylesheet_uri(), array(), _S_VERSION ); wp_enqueue_style( ‘maxprofessional-main’, get_template_directory_uri() . ‘/css/main.css’ ); wp_register_script(‘app-js’, get_template_directory_uri() . ‘/js/app.js’, false, ‘1.0’, true); wp_enqueue_script( ‘app-js’ ); wp_enqueue_style( ‘bootstrap-icons’, ‘https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css’ ); wp_style_add_data( ‘maxprofessional-style’, ‘rtl’, ‘replace’ ); wp_enqueue_script( ‘maxprofessional-navigation’, get_template_directory_uri() . ‘/js/navigation.js’, array(), _S_VERSION, true ); if ..

Read more