Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
How to remove unused <b></b> tags on my Wordpress site?

I have the following site: https://www.daenischer-kerzenshop.de/ If i look at the source code via the browser, I can detect empty tags.

Does anyone happen to know why they are generated and how I can remove them? I have searched all possible files and removed all code that could possibly cause this.Unfortunately I could not find a usable plugin either.

Here is an example (Browser-> View source code-> line: 1465 ):

<div class="container section-title-container">
  <h1 class="section-title section-title-center">
    <b></b>
    <span class="section-title-main">Qualitätsmerkmale der Dänischen Kerzen</span>
    <b></b>
  </h1>
</div>

The site uses the theme Flatsome.

Any help would be greatly appreciated!

about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

Using str_replace() Method

This is the simplest and the easiest method to exclude any unused tags or text. Just add the below code and see the magic.

$foo = '
<div class="container section-title-container">
  <h1 class="section-title section-title-center">
    <b></b>
    <span class="section-title-main">Qualitätsmerkmale der Dänischen Kerzen</span>
    <b></b>
  </h1>
</div>';

$bar = str_replace('<b></b>', '', $foo); // Magic mathod
echo $bar;

The Code After Cleaning Unused Tags

<div class="container section-title-container">
  <h1 class="section-title section-title-center">  
    <span class="section-title-main">Qualitätsmerkmale der Dänischen Kerzen</span>   
  </h1>
</div>
about 4 years ago · Juan Pablo Isaza Report

0

the "b" tag created by your Theme developer. it has some styles in your theme. he/she styled the "section-title b" tag for making the title centered. either it is not a standard way to make a title text centered. you can try this way:

put this code into your css file and see the result with clearing your cache by ctrl + F5:

.section-title b {
  display: none;
}
.section-title.section-title-center {
  justify-content: center;
}
about 4 years ago · Juan Pablo Isaza Report

0

Those tags actually are being used by the theme author for styling purposes, so you can't remove or hide them without modifiyng the look of the page. Notice that they have the following styles assigned:

.section-title b {
    display: block;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    height: 2px;
    opacity: .1;
    background-color: currentColor;
}

They represent the thin lines at both sides of the titles.

So, even they are empty, they represent a visual element in your page style.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!