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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)