Mudando o RSS no ProSense-Grey

Bem pessoal,

Dando continuidade aos artigos de RSS e Feeds no WordPress, vou ensinar para vocês como mudar o caminho para seus Feeds, no tema ProSense-Grey. Não é a melhor solução eu creio, mas assim que eu consegui fazer :D

Basta navegar até a pasta com o tema ProSense-Grey:

# cd wp-content/themes/ProSense-Grey

E editar o arquivo header.php ( Lembre-se de fazer um backup do arquivo, antes de editá-lo ).

Segue o código do arquivo sem alteração :

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
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
 
<title><?php if(is_home() || is_search()) { bloginfo('name'); echo ' - '; bloginfo('description'); } else { wp_title('') ;} ?></title>
 
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
 
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
 
 
<?php wp_get_archives('type=monthly&format=link'); ?>
 
<?php wp_head(); ?>
</head>
<body>
 
<div id="page">
 
<div id="header">
 
 
                <div id="header_left">
                        <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
                        <div class="description"><?php bloginfo('description'); ?></div>
                </div>
 
                <div id="header_right">
                        <div id="subscribe">
                                <a href="<?php bloginfo('rss_url'); ?>" title="Assine meus Feeds" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Assine meus Feeds" /></a>
                        </div>
                </div>
                <div style="clear:both;"></div>
 
</div>
<hr />
<br>

Agora, vamos observar as mudanças feitas na linha 36 :

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
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
 
<title><?php if(is_home() || is_search()) { bloginfo('name'); echo ' - '; bloginfo('description'); } else { wp_title('') ;} ?></title>
 
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
 
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
 
 
<?php wp_get_archives('type=monthly&format=link'); ?>
 
<?php wp_head(); ?>
</head>
<body>
 
<div id="page">
 
<div id="header">
 
 
                <div id="header_left">
                        <h1><a href="<?php echo get_settings('home'); ?>"><?php bloginfo('name'); ?></a></h1>
                        <div class="description"><?php bloginfo('description'); ?></div>
                </div>
 
                <div id="header_right">
                        <div id="subscribe">
                                <a href="http://feedproxy.google.com/gustavoroberto" title="Assine meus Feeds" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Assine meus Feeds" /></a>
                        </div>
                </div>
                <div style="clear:both;"></div>
 
</div>
<hr />
<br>

Façam as mudanças de acordo com seu site.

Observem que eu mudei de :

1
<a href="<?php bloginfo('rss_url'); ?>" title="Assine meus Feeds" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Assine meus Feeds" /></a>

para :

1
<a href="http://feedproxy.google.com/gustavoroberto" title="Assine meus Feeds" rel="nofollow"><img src="<?php bloginfo('template_url'); ?>/images/rss-feed-icon.jpg" alt="Assine meus Feeds" /></a>

Fazendo com o que o caminho para os feeds, fossem alterados, viu como foi fácil.

Salve, saia e teste, com certeza vocês terão o resultado desejado.

Abraços e espero que tenham gostado !

Leave a Reply