New answers tagged

0

WordPress can't use themes designed for other platforms (for instance, you can't use Ghost CMS themes in WordPress because they weren't designed for the platform). To answer the second part of your question, you can use any third-party theme made for WordPress even if it was not made by the WordPress development team. The most popular themes for WordPress ...


1

Please use this method: // Lets create some test CSS code $css = '/* Some test CSS */ body {background:red;}'; // Stash CSS in uploads directory require_once( ABSPATH . 'wp-admin/includes/file.php' ); // We will probably need to load this file global $wp_filesystem; $upload_dir = wp_upload_dir(); // Grab uploads folder array $dir = trailingslashit( $...


0

I am not sure if this is the correct solution but as I am also using custom theme and so on I leaned towards creating menus in such manner I can use the advantage of the "suffixes" or "slugs" of the language plugin to determine the current language. so create suffix variable string $lang_suffix = "_". pll_current_language('slug')...


0

inspect the page, get the class and put on css .theClass{ display:none; } also if you want to remove the text on the header, probably will be on the file header.php this are maybe the two ways I would do it, there are many more.


1

Try something like this instead: /** * Theme Name: Mamba * Theme URI: https://bootstrapmade.com/mamba-one-page-bootstrap-template-free/ * Author: BootstrapMade * Author URI: https://bootstrapmade.com/ * Version: 4.0.1 * License URI: https://bootstrapmade.com/license/ */ Or something like: /* Theme Name: Mamba Theme URI: https://bootstrapmade.com/...


1

I don't know if I understand you correctly, but probably in the file which calls get_sidebar(): You could do something like if ( ! is_home() ) { get_sidebar(); } Or in your header.php where the main-element starts (which probably wraps the sidebar). You could give it a class if the page is not the home page: <!-- body and header-stuff --> <...


1

You forgot to add get_header() , please try below code. <?php get_header(); ?> <div class="container"> <h1><?php single_cat_title();?></h1> <?php if (have_posts()) : while(have_posts()) : the_post();?> <div class="card mb-4"> <div class="card-body"> <?php if (...


Top 50 recent answers are included