Change html tag italic(i) and bold(b) to tag (em) and (strong) for SEO » DataLife Engine Support

DLEVIET - DataLife Engine Support Home Page

DataLife Engine Support » DataLife Engine » Edit Code » Change html tag italic(i) and bold(b) to tag (em) and (strong) for SEO

Change html tag italic(i) and bold(b) to tag (em) and (strong) for SEO

  • Author: Pakistan;  
  • Views: 3842;  
  • Date: 22 July 2010;  
Change <i> to <em> & <b> to <strong> for sake of SEO

The essence of the edit code - change the tag [b] () and [i] () on the tags - and , which is more consistent with SEO (search engine optimization).

Change html tag italic(i) and bold(b) to tag (em) and (strong) for SEO


Everyone knows html tag "b" and "strong". if not then go to w3schools.com or read below

[b] [/b]- Strictly a presentational element.
If you want text to be italicized and not have any real semantic meaning, then wrap it in .
[b][/b] - Strictly a presentational element.
If you want text to be bold and not have any real semantic meaning, then wrap it in .
[b][/b] - Strictly a structure element.
If you want text to be spoken with emphasis using a speech reader, then wrap it in .
[b][/b] - Strictly a structure element.
If you want text to be spoken with strong emphasis using a speech reader, then wrap it in
.

Search engines love the tag "strong". Use it correctly


How To?

1. Open ./engine/classes/parse.class.php

Find:

$txt = preg_replace( "#<i>(.+?)</i>#is", "[i]\\1[/i]", $txt );
$txt = preg_replace( "#<b>(.+?)</b>#is", "[b]\\1[/b]", $txt );


Replace:

$txt = preg_replace( "#<em>(.+?)</em>#is", "[i]\\1[/i]", $txt );
$txt = preg_replace( "#<strong>(.+?)</strong>#is", "[b]\\1[/b]", $txt );


Then Find:

$source = preg_replace( "#\[b\](.+?)\[/b\]#is", "<b>\\1</b>", $source );
$source = preg_replace( "#\[i\](.+?)\[/i\]#is", "<i>\\1</i>", $source );


Replace with:

$source = preg_replace( "#\[b\](.+?)\[/b\]#is", "<strong>\\1</strong>", $source );
$source = preg_replace( "#\[i\](.+?)\[/i\]#is", "<em>\\1</em>", $source );



2. Open the admin area - Find and Replace (in order to change already made to the database of news / page):

Find Older Tag:
<b>


Replace with new:
<strong>



Find Older Tag:
</b>


Replace with new:
</strong>



Find Older Tag:
<i>


Replace with new:
<em>



Find Older Tag:
</i>


Replace with new:
</em>


Now Chill lol
Love Pakistan winked
We encourage you to Register or Login to website under your name.

Pakistan

Posted 22 July 2010 14:23 Register: 2.03.2010
ooops.. hope dleviet will fix it

1. Open ./engine/classes/parse.class.php

Find:

$txt = preg_replace( "#<i>(.+?)</i>#is", "\\1", $txt );
$txt = preg_replace( "#<b>(.+?)</b>#is", "\\1", $txt );


Replace:

$txt = preg_replace( "#<em>(.+?)</em>#is", "\\1", $txt );
$txt = preg_replace( "#<strong>(.+?)</strong>#is", "\\1", $txt );


Then Find:

$source = preg_replace( "#\[b\](.+?)\[/b\]#is", "<b>\\1</b>", $source );
$source = preg_replace( "#\[i\](.+?)\[/i\]#is", "<i>\\1</i>", $source );


Replace with:

$source = preg_replace( "#\[b\](.+?)\[/b\]#is", "<strong>\\1</strong>", $source );
$source = preg_replace( "#\[i\](.+?)\[/i\]#is", "<em>\\1</em>", $source );



2. Open the admin area - Find and Replace (in order to change already made to the database of news / page):

Find Older Tag:
<b>


Replace with new:
<strong>



Find Older Tag:
</b>


Replace with new:
</strong>



Find Older Tag:
<i>


Replace with new:
<em>



Find Older Tag:
</i>


Replace with new:
</em>



Article Title was:

Change <i> to <em> & <b> to <strong> for sake of SEO

kamale

Posted 9 August 2010 00:20 Register: 8.08.2010
Thanks...

bf005

Posted 13 August 2010 22:20 Register: 2.08.2010

karimshawky

Posted 10 October 2010 09:10 Register: 21.05.2010
what you mean by admin area ???

Pakistan

Posted 10 October 2010 11:27 Register: 2.03.2010
go to your admin.php then open you module "find & replace" BTW its an optional action, not required. but if you want to replace in older post then you need to replace code as mentioned above.

karimshawky

Posted 14 October 2010 04:11 Register: 21.05.2010
how to make directory of Recent Search Cloud change automaticly

romeoluv56

Posted 19 January 2011 15:27 Register: 10.01.2011
Pakistan,

still not understand about admin area can u please clarify little more

regards

deadmix

Posted 26 April 2011 06:02 Register: 30.03.2010
you go to your Admin Control Panel ==> Main Content ==> Main Setting Then Scroll Down to the Tab : Control of filters and click to : Find and Replace
Information
Members of Guest cannot leave comments.

Pagerank Update

    Updates Yandex SEO
    13.04.2012
    16.02.2012
    04.02.2012
    Updates Yandex search
    17.05.2012
    15.05.2012
    12.05.2012
    Updates Yandex Catalogue
    22.05.2012
    21.05.2012
    18.05.2012
    Updates Google
    03.05.2012
    06.02.2012
    08.11.2011

Find us on Facebook

Poll

How do you know DataLife Engine Support?

Search Engine
Other DLE Support websites
Forum
Friends
Others

Sponsor

Calendar

«    May 2012    »
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
Contact us in social network

Facebook

Twitter