In this tutorial I explain how to customize the feed links that WordPress automatically generates in the header-section (`<head>`) to help the visitor on the one hand and to make the links more eye-catching and on the other hand to increase the click-through rate. This is especially interesting if you also offer podcast feeds.  [The result: individualized feed links in WordPress] ## What is this about? In a standard installation WordPress generates up to three links in the `<head>`, i.e. in the source code of the header line, using the link element. These refer to the three feeds: - main RSS feed - comment feed - RSS feed of the corresponding archive: category, keyword etc. This is what it looks like on the start page of a standard installation with Firefox:  The first two links - which can also be seen in the screenshot - also appear on the start page, the RSS feeds of the archives only appear on the appropriate subpage. You will find the entries in the source code if you search for the following sections: `<link rel="alternate" type="application/rss+xml"` ## The "problem" But two things bothered me here... or better said, they were not optimal in my eyes and therefore I wanted to adapt them. On the one hand I wanted to make the browser and the podcatcher (software with which you can subscribe to podcasts) aware of the podcast feed on the start page and with the help of graphics or icons I wanted to loosen the whole thing up a bit and thus also make it more user-friendly. ## The solution First I disabled the automatic output of feed references with the following code fragment in the functions.php of the theme: // remove feed links in header remove_action('wp_head', 'feed_links', 2 ); remove_action('wp_head', 'feed_links_extra', 3 ); Then I extended the header.php and entered the following shortly before `</head>`: <link rel="alternate" type="application/rss+xml" title="perun.net » Feed der Blogartikel 📰" href="https://www.perun.net/feed/" /> <link rel="alternate" type="application/rss+xml" title="perun.net » Kommentar-Feed 💬" href="https://www.perun.net/comments/feed/" /> <link rel="alternate" type="application/rss+xml" title="WordPress & Webwork Podcast 🎧" href="https://www.perun.net/podcast/feed/" /> Now, when I access my professional website with a podcatcher, it looks like the first picture. This figure shows the call of AntennaPod on Android 7 and here follows the view in the current Firefox (left) and the current version of Opera (right):  Let us now come to the code that is responsible for this. The whole secret lies in the content of the title attribute. There you can not only place simple text but also symbols and icons. For example, `»` becomes **ยป**, `📰` becomes ๐ฐ, `💬` becomes ๐ฌ, `🎧` becomes ๐ง etc. These and other symbols can be found on the following two websites, among others: - [Unicode Character Search](http://www.fileformat.info/info/unicode/char/search.htm) - [Graphemica](http://graphemica.com/unicode/characters) The purpose of all this is to focus on certain RSS feeds and to help visitors find their way around. Therefore, one should take a moderate approach here as well. That means: don't include dozens of feed links and also don't include all icons which are not cleared out in a minute. ๐
author | vladimir-simovic |
---|---|
permlink | customizing-feed-links-in-the-wordpress-header |
category | wordpress |
json_metadata | {"community":"busy","app":"busy/2.5.6","format":"markdown","tags":["wordpress","busy","web","rss","tutorial"],"users":[],"links":["http://www.fileformat.info/info/unicode/char/search.htm","http://graphemica.com/unicode/characters"],"image":["https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1510576636/knehb3mdymeserujgyab.png","https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1510576186/lyvvopglfmcgxcgckywa.png","https://steemitimages.com/0x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1510577111/kn6xv3hwhwnglj4y7goe.png"]} |
created | 2018-08-24 14:36:36 |
last_update | 2018-08-24 14:36:36 |
depth | 0 |
children | 0 |
last_payout | 2018-08-31 14:36:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 19.382 HBD |
curator_payout_value | 5.625 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 3,748 |
author_reputation | 56,930,790,558,862 |
root_title | "Customizing feed links in the WordPress header" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 69,233,777 |
net_rshares | 17,010,316,339,890 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
team | 0 | 82,047,506,688 | 10% | ||
billbutler | 0 | 553,800,488,632 | 100% | ||
dahaz159 | 0 | 129,460,510,567 | 100% | ||
primus | 0 | 111,944,493,350 | 100% | ||
gidlark | 0 | 146,630,384,388 | 100% | ||
germansailor | 0 | 99,241,124,620 | 100% | ||
telos | 0 | 78,582,116,657 | 100% | ||
ethansteem | 0 | 207,906,170,425 | 100% | ||
penguinpablo | 0 | 173,382,463,964 | 8% | ||
brains | 0 | 141,036,924,471 | 100% | ||
saamychristen | 0 | 18,198,692,737 | 80% | ||
senseye | 0 | 98,605,320,933 | 100% | ||
busy.pay | 0 | 233,170,052,358 | 0.73% | ||
steemsportsfund | 0 | 167,746,608,663 | 100% | ||
zymer | 0 | 110,524,415,233 | 100% | ||
steemvoter | 0 | 129,788,125,639 | 100% | ||
valth | 0 | 189,396,972,916 | 100% | ||
schamangerbert | 0 | 63,383,376,258 | 15% | ||
pivx | 0 | 79,282,792,778 | 100% | ||
elviento | 0 | 422,465,906 | 2% | ||
maryfavour | 0 | 388,496,126,793 | 100% | ||
nasgu | 0 | 321,253,704,112 | 100% | ||
inceptionally | 0 | 185,616,006,009 | 100% | ||
nepd | 0 | 95,856,004,227 | 100% | ||
juliank | 0 | 262,110,897,864 | 100% | ||
andyjaypowell | 0 | 14,150,607,449 | 10% | ||
ozoo | 0 | 127,927,721,997 | 100% | ||
olsm | 0 | 258,892,801,000 | 100% | ||
upheaver | 0 | 976,584,883 | 5% | ||
anforo | 0 | 141,047,721,599 | 100% | ||
flurgx | 0 | 82,260,718,143 | 100% | ||
steeminator3000 | 0 | 187,781,635,824 | 100% | ||
eisenbart | 0 | 31,716,415,860 | 100% | ||
spectrumecons | 0 | 751,241,290,274 | 100% | ||
andyluy | 0 | 123,940,013,768 | 100% | ||
becometheartist | 0 | 91,301,044,142 | 100% | ||
gunthertopp | 0 | 355,019,362,538 | 100% | ||
furious-one | 0 | 188,660,191,858 | 100% | ||
frost04 | 0 | 78,823,843,078 | 100% | ||
lisaocampo | 0 | 124,150,273,654 | 100% | ||
sanjeevm | 0 | 77,113,975,654 | 100% | ||
upbloke | 0 | 79,485,380,431 | 100% | ||
honourmaus | 0 | 520,973,266 | 40% | ||
steps | 0 | 419,963,235,961 | 100% | ||
resiliencia | 0 | 359,090,941,625 | 100% | ||
robertking | 0 | 422,278,194,924 | 100% | ||
warjar | 0 | 348,863,896,759 | 100% | ||
metmuseum | 0 | 261,400,642,141 | 100% | ||
rockz | 0 | 406,377,117,783 | 100% | ||
marty-arts | 0 | 88,511,519,620 | 100% | ||
nainaztengra | 0 | 339,342,727,470 | 100% | ||
malekalmsaddi | 0 | 197,053,416,127 | 100% | ||
dong262514 | 0 | 344,559,307,475 | 100% | ||
melbookermusic | 0 | 83,254,791,685 | 100% | ||
tomiscurious | 0 | 78,453,226,006 | 100% | ||
helix | 0 | 84,414,893,475 | 100% | ||
cotarelo | 0 | 78,148,403,884 | 100% | ||
mawit07 | 0 | 115,999,778,111 | 100% | ||
alishannoor | 0 | 361,349,275,472 | 100% | ||
sniffbiff | 0 | 185,654,960,588 | 100% | ||
urukai | 0 | 8,825,581,015 | 100% | ||
angelol | 0 | 453,101,920,701 | 100% | ||
reiseamateur | 0 | 41,418,640,054 | 25% | ||
opaulo | 0 | 113,894,013,432 | 24% | ||
gogogadgetupvote | 0 | 93,647,930,896 | 100% | ||
depotboost | 0 | 159,497,928,574 | 100% | ||
vladimir-simovic | 0 | 126,414,488,171 | 100% | ||
thekittygirl | 0 | 231,783,045 | 0.25% | ||
cannonwar | 0 | 442,414,970,924 | 100% | ||
sailingtohappy | 0 | 79,017,010,480 | 100% | ||
nirgf | 0 | 8,158,757,061 | 100% | ||
generouswhale | 0 | 184,934,806 | 100% | ||
kassixo | 0 | 113,958,798,871 | 100% | ||
jutdagut | 0 | 433,268,960 | 100% | ||
murad06 | 0 | 362,489,886 | 50% | ||
tpot | 0 | 105,278,431,359 | 100% | ||
brianturner | 0 | 143,493,252,235 | 100% | ||
alexs1320 | 0 | 60,071,739,277 | 100% | ||
cryptonized | 0 | 22,416,174,656 | 8% | ||
yairdd | 0 | 25,476,650,528 | 34% | ||
jerseynash | 0 | 108,921,937,704 | 100% | ||
ontheway2017 | 0 | 85,417,241,657 | 100% | ||
fiducia | 0 | 92,507,199,278 | 100% | ||
senseibabs | 0 | 436,793,707 | 100% | ||
betbuddha | 0 | 95,173,549,349 | 100% | ||
upvotewhale | 0 | 110,549,389,696 | 100% | ||
carrioner | 0 | 93,357,061,104 | 100% | ||
dsocer | 0 | 142,743,514,106 | 100% | ||
youngbinlee | 0 | 276,553,590,301 | 100% | ||
stiflers-mom | 0 | 416,391,270,060 | 100% | ||
scienceangel | 0 | 29,996,880,883 | 100% | ||
pedrojunior | 0 | 145,916,386,076 | 100% | ||
gbd | 0 | 176,306,773,666 | 100% | ||
mirnasahara | 0 | 446,706,595 | 100% | ||
mariaputri17 | 0 | 428,562,840 | 100% | ||
lucentbritex | 0 | 90,694,882,106 | 100% | ||
matthewthonyit | 0 | 158,228,676 | 50% | ||
rilc0n | 0 | 173,425,207 | 20% | ||
smie | 0 | 446,680,718 | 100% | ||
snackaholic | 0 | 7,520,618,317 | 80% | ||
shartzy | 0 | 124,698,811,875 | 100% | ||
endurance1968 | 0 | 990,330,122 | 100% | ||
sugardash | 0 | 96,068,863,611 | 100% | ||
thedende | 0 | 1,955,788,387 | 100% | ||
cliffpower | 0 | 310,047,653,566 | 100% | ||
pejugold | 0 | 90,650,670 | 50% | ||
sep91seb | 0 | 188,608,013 | 31% | ||
mwfiae | 0 | 39,761,549,597 | 100% | ||
rivalzzz | 0 | 20,125,184,199 | 50% | ||
xinvista | 0 | 424,730,752 | 100% | ||
fr4mer | 0 | 584,691,349 | 100% | ||
fsherberg | 0 | 511,394,248 | 100% | ||
yb1337 | 0 | 163,404,317,267 | 100% | ||
belvajarandilla | 0 | 220,050,107 | 50% | ||
vampirgarfield | 0 | 122,761,998 | 50% | ||
lilbastard | 0 | 2,079,895,975 | 100% | ||
sergino | 0 | 252,042,978 | 1% | ||
cryptostorm.fund | 0 | 190,075,672,207 | 100% | ||
beetlevc | 0 | 1,240,901,893 | 2% | ||
svetlana1 | 0 | 502,154,335 | 100% | ||
tiblog | 0 | 56,329,038,803 | 100% | ||
flightphotos | 0 | 83,053,983,309 | 100% | ||
theresistance | 0 | 94,145,792,761 | 100% | ||
robioulsanny | 0 | 61,002,848 | 10% | ||
helmimemes | 0 | 423,304,664 | 100% | ||
pi100 | 0 | 305,462,201,481 | 100% | ||
skuzmin88 | 0 | 507,297,477 | 100% | ||
steemguardian | 0 | 82,243,196,884 | 100% | ||
aes-exchange | 0 | 184,336,489,227 | 100% | ||
jmuri | 0 | 77,618,742,592 | 100% | ||
ivan.dyuzhev | 0 | 519,929,436 | 100% | ||
buildingpies | 0 | 342,219,219,570 | 100% |