How to include different html tags in the header for different pages?

Just assign something to a variable and output that if(is_page(14) or is_page(16)) { $class_name=”bannerExp”; } if(is_page(18) or is_page(52) or is_page(22) or is_page(20)) { $class_name=”bannerD”; $somevariable=”test”; } if(is_page(27)) {$class_name=”bannerJ”;} if(is_page(25)) {$class_name=”bannerS”;} if(is_page(2)) {$class_name=”bannerH”;} <div class=”<?php echo($class_name);?>”> <?php (if $somevariable != ”) { echo $somevariable;} ?> That being said, this is a horrible way of doing things … Read more

Switch position of elements in the footer [closed]

You can solve this by using Flexbox. Add the following CSS code somewhere in your theme stylesheet or via dashboard Appearance > Customize > Additional CSS .fusion-copyright-content { display: flex !important; flex-direction: row-reverse !important; } .fusion-copyright-content .fusion-social-links-footer { margin-right: auto !important; }

An extra is appearing in my source code–how do I diagnose the source?

I’ve used these in a template to remove all p tags from an editor: remove_filter(‘acf_the_content’, ‘wpautop’); // This is where the content of the editor was written out by the template add_filter(‘acf_the_content’, ‘wpautop’); //add back the filter //so it doesn’t mess with other stuff Also you could try deleting the line break between the images. … Read more

Custom CSS is overwritten by WordPress?

I do assume you have functions.php file in your theme directory after that you can add following code : /*Section for enqueuing styles and scripts*/ function keyword_theme_styles_and_scripts(){ /* Styles Below */ wp_enqueue_style(‘bootstrap-min-css’, ‘https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css’); wp_enqueue_style(‘video-js-min-css’, get_template_directory_uri().’/assets/css/video-js.min.css’); wp_enqueue_style(‘google-fonts’, ‘https://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800’); wp_enqueue_style(‘font-awesome-min-css’, get_template_directory_uri().’/assets/font-awesome/css/font-awesome.min.css’); wp_enqueue_style(‘magnific-popup-css’, get_template_directory_uri().’/assets/css/magnific-popup.css’); wp_enqueue_style(‘animate-min-css’, get_template_directory_uri().’/assets/css/animate.min.css’); wp_enqueue_style(‘device-mockups-min-css’, get_template_directory_uri().’/assets/device-mockups/device-mockups.min.css’); wp_enqueue_style(‘main-css’, get_template_directory_uri().’/style.css’); /* Scripts Below */ wp_enqueue_script(‘jquery-min-js’, get_template_directory_uri().’/assets/js/jquery.min.js’, array(), ”, … Read more