Line break no working on theme

It is possible to add line breaks using   in the “Text” view like so: https://cloudup.com/cb5PCT2sWRP One thing to be aware of is that once you add the HTML for non-breaking spaces, you must remain in the “Text” view for future edits; switching back and forth to the visual editor will remove the above code.

Plugin to load theme if mobile and specific page

Try: add_filter(‘template’, ‘change_theme’); add_filter(‘option_template’, ‘change_theme’); add_filter(‘option_stylesheet’, ‘change_theme’); function change_theme($theme) { if ( wp_is_mobile() ) { $theme=”SelectThemeMobile”; } $page = get_page_by_title( ‘Title for 145’ ) if ( is_page($page->ID) and wp_is_mobile()) $theme=”SelectThemeOne”; // Replace name below with hook for missing stylesheet wp_enqueue_style( ‘registered name of missing mobile stylesheet’); } return $theme; } I believe you must iterate … Read more

WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query

H’okay, so, using this resource, I was found that going into the template-knowledgebase.php file and replacing the cat keyword with category__in (that’s a double underscore) did only return the articles who’s parent were the category we were looking at. I also edited the else statement of the if to be endif and removed the extraneous … Read more

Changing admin Textarea to integrated WP editor

Try Advanced Custom Fields and simply add a WYSIWYG editor. Step 1 Et Voila! Displaying the input on the front-end <?php /* Put the attachment ID in place of 999 */ // Display the_field(‘yea’, 999); // In case you need to don’t want to display it right away get_field(‘yea’, 999); ?>