adding a unique page to an existing site

There are several ways to do that depending on the type of the content which will be in the page, but the most straight forward is to creat a new page template that will generate the content/visual in the required way, then create a page and assign the template to it. The page then will … Read more

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

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); ?>