New answers tagged

0

I went to Appearance - Customize - "Whatever Theme " Theme Options - Blog Section Options - here i selected the "content" option instead of "excerpt" from the Show content form tab


0

The root problem here is assumptions. For example lets say we have an array here: $test = [ 'foo' => 'bar' ]; If we run echo $test['foo']; we should see bar, but what if we ran echo $test['bananas'];? There is no bananas entry in that array, so PHP will notice this, throw a warning/notice similar to the one you're seeing, then fill in the missing ...


0

class RDTheme should be located in themes rdtheme.php file. Please check .../themes/eikra/inc/rdtheme.php file. If you didn't find this file or folder in your live server then there might be some issue with your Wordpress migration from Localhost to Live server. If you are not using a plugin to migrate your Wordpress site then you can try any popular ...


0

Normally the quickest way is to go to Appearance > Themes > Customise (on your theme). This allows you to insert custom CSS. I usually prefer to create a child theme and either override the header.php file by copying it into the child theme in the same folder location. Or enqueue the stylesheet using functions.php in your child theme. The child theme ...


1

You will be rejected from the WordPress.org theme direcotry if you include these post types in the theme. The guidelines, which are available here, state: Non-design related functionality is not allowed. (See: Plugin territory examples) And one of the examples is: Custom Post Types and Shortcodes Regarding TGM, the guidelines have this to say: ...


0

If you are a theme developer, you might want to force reload of your assets when you push new version. So versioning of a theme is done in style.css /* Theme Name: Your Theme Name Version: 1.0.2 */ At the top of your functions.php: $theme = wp_get_theme(); define('THEME_VERSION', $theme->Version); //gets version written in your style.css ...


0

They just use the default markup. You only need to define your own walker class if you’re changing the markup from the default. Believe it or not, but it’s perfectly possible to create menus without Bootstrap! The only exceptions to the default menu markup is that some of the default themes, like Twenty Nineteen, use the walker_nav_menu_start_el filter to ...


0

I've managed to sort this All I needed to do was remove these lines. $output .= "</div>"; $output .= "</dropdown-link>"; $output .= "</div>";


0

The problem is that your theme still load the main style.css sheet, because it is called by wp_head(). See the documentation here So, in order to not load your theme main stylesheet, you have to add to your functions.php file : add_action( 'wp_enqueue_scripts', 'yolo_my_custom_template' ); function yolo_my_custom_template(){ if ( is_page_template( '...


2

I believe to get this working I wasn't calling this at the correct time, and I wrapped it in a function after_setup_theme, like so: add_action( 'after_setup_theme', 'ttp_custom_font_sizes' ); function ttp_custom_font_sizes() { // removes custom font sizes add_theme_support('disable-custom-font-sizes'); // add my own custom sizes ...


2

So it seems that there maybe two issues here first it seems that you are not establishing a new instance of a WP_Customize_Control like below and also it is important to remember that you have to give at least the min array items to both the setting and the control or it will not show, you had an empty array in the setting. you also want to make sure that ...


Top 50 recent answers are included