【cocoon】カテゴリー名の背景色をカテゴリーごとに変える方法

WordPressテーマcocoonのカテゴリーバッジの色を変える方法 ブログ・HP

cocoonの記事一覧ページ(カテゴリーページ)で、サムネイルの上に小さく出るカテゴリー名のバッジの色を変えたい!

カテゴリーによって色分けされているブログもよくありますよね。

なんだかおしゃれだったので真似したくなりやってみました。

cocoonカテゴリーのタグの色を変える方法

 

バッジの色を変える方法を説明します。記述はコピペでOK!

では行ってみましょう!

スポンサーリンク

【cocoon】カテゴリー名の背景色をカテゴリーごとに変える方法

以下の記述を外観→テーマエディターのスタイルシートに書き足せばOKです。
.cat-label- {background-color: #ffffff;}

 

「ffffff」の部分にお好みの色のカラーコードを当てはめて下さい。

部分●の部分には数字が入るのですが、数字はカテゴリーIDとなっています。

カテゴリーにはそれぞれ番号が不規則に割り振られるので、その番号を確認して●の部分に入れる必要があります。

カテゴリーIDの確認方法は以下の通り。

 

①投稿→カテゴリーへ移動

cocoonカテゴリーのタグの色を変える方法

 

②カテゴリー名にマウスを乗せる

この時画面下のリンク先URLの部分に出てくる「category&tag_ID=●」という部分の

●の数字が、カテゴリーIDです。

cocoonカテゴリーのタグの色を変える方法

 

この数字を、先ほどのCSSの●の部分に当てはめます。

あとはお好みのカラー指定をすれば、カテゴリーバッジの色が代わります!

仕組みがわかれば簡単ですね!

cocoon設定からは出来るのか?

最初はcocoon設定から出来るのかなーと思って色々見てたのですが、

それらしき項目が見つかりませんでした。

カテゴリーのIDはランダムで指定されるのでそう簡単に出来ないのでしょうか。

こうして自分でいじってみると、複雑さがよくわかりますね。

cocoonのようにカスタマイズしやすいテーマを作ってくれた方に本当に感謝です…。

まとめ:【cocoon】カテゴリーバッジの色はカテゴリーIDごとに設定できる

ブログのテーマでcocoonを使っている人は多いと思います。

あなたのブログのデザイン性を上げるために役に立てば嬉しいです!

それにしても、カテゴリーごとにID番号が割り当てられるのは理解できますが、なんでランダムなんでしょう?

謎だ〜。

 

コメント

  1. Dvwvxo より:

    order lipitor atorvastatin 20mg price order lipitor 20mg generic

  2. Xyvqpc より:

    order cipro 500mg pill – cheap amoxiclav buy clavulanate generic

  3. Rfslkk より:

    buy baycip online – buy cephalexin 500mg sale clavulanate over the counter

  4. Tffxdu より:

    buy metronidazole without prescription – order azithromycin pills buy generic azithromycin over the counter

  5. Brhwuf より:

    buy ciplox 500 mg without prescription – order ciprofloxacin 500mg online erythromycin 500mg price

  6. Kfpwjd より:

    buy valtrex generic – buy nemasole order zovirax 400mg generic

  7. Djovds より:

    ivermectin 12mg oral – order ciplox 500 mg online cheap tetracycline 250mg for sale

  8. Mdfxax より:

    furosemide pill – lasix uk order captopril 25mg generic

  9. Yivozh より:

    glycomet ca – order cipro online buy lincomycin cheap

  10. Zmmcfg より:

    zidovudine 300mg tablet – order generic allopurinol buy allopurinol 100mg generic

  11. Okdcnd より:

    clozaril sale – buy perindopril 8mg famotidine usa

  12. Eniwzu より:

    quetiapine tablet – order venlafaxine 75mg online eskalith oral

  13. Yxwbqk より:

    anafranil 50mg cheap – order anafranil 50mg online cost doxepin 75mg

  14. Ergrok より:

    order hydroxyzine 10mg online – brand buspar 10mg buy endep without prescription

  15. Ovaybg より:

    clavulanate oral – myambutol 600mg sale buy ciprofloxacin cheap

  16. Mafqwt より:

    amoxicillin for sale – buy amoxicillin sale cipro online order

  17. Zedarn より:

    purchase zithromax without prescription – oral tindamax generic ciplox 500 mg

  18. Zxmnzy より:

    clindamycin price – cleocin 150mg without prescription buy chloromycetin generic

  19. Lubesp より:

    stromectol otc – how to buy cefaclor purchase cefaclor sale

  20. Mfzcqc より:

    purchase albuterol inhalator online – generic phenergan theo-24 Cr price

  21. Xhkcky より:

    medrol 16 mg over counter – buy fml-forte online order generic azelastine

  22. Ecpsrs より:

    buy desloratadine generic – purchase beclomethasone sale buy ventolin 2mg inhaler

  23. Quuvmi より:

    glyburide 2.5mg cheap – order glyburide for sale forxiga 10mg pill

  24. Ijbvmy より:

    glucophage 500mg cheap – glycomet 1000mg price buy generic precose over the counter

  25. Qmtcvz より:

    order repaglinide online – prandin 2mg for sale jardiance 25mg generic

  26. Oqxmne より:

    terbinafine us – cost lamisil buy griseofulvin without prescription

  27. Szlbta より:

    buy generic semaglutide for sale – glucovance without prescription buy DDAVP without a prescription

  28. Khfvhn より:

    buy ketoconazole without a prescription – nizoral over the counter order generic itraconazole 100mg

  29. Qfbsup より:

    famvir 500mg oral – buy famciclovir without a prescription where to buy valcivir without a prescription

  30. Ixxkae より:

    order lanoxin 250 mg sale – dipyridamole order lasix oral

  31. Bwpelt より:

    metoprolol order – buy benicar 20mg without prescription adalat 10mg oral

  32. Ljjzng より:

    order microzide without prescription – amlodipine online buy generic bisoprolol over the counter

  33. Ilrybn より:

    nitroglycerin drug – buy generic combipres over the counter diovan ca

  34. Qphyed より:

    simvastatin 20mg cost – fenofibrate unicorn atorvastatin anyone

  35. Qeaeou より:

    crestor pills audience – zetia desire caduet buy reflect

  36. Heonlv より:

    viagra professional online short – buy cialis professional twelve levitra oral jelly online whip

  37. Thcnlx より:

    priligy countenance – viagra plus footstep cialis with dapoxetine remove

  38. Vpgidv より:

    cenforce ward – zenegra online harmony brand viagra beside

  39. Pepezr より:

    brand cialis swell – penisole seek penisole supple

  40. Gsxcsv より:

    cialis soft tabs pills blade – valif pills cruel viagra oral jelly online drift

  41. Vxykxm より:

    cenforce anger – zenegra pills inside brand viagra online college

  42. Crsdcx より:

    priligy admiration – udenafil charles cialis with dapoxetine infinite

  43. Recpvl より:

    acne medication ankle – acne treatment frank acne treatment recover

  44. Qghkfp より:

    asthma medication hurt – asthma medication lean asthma treatment consequence

  45. Tkzhlc より:

    uti antibiotics manner – uti treatment broad uti medication send

  46. Hnzzmk より:

    pills for treat prostatitis frantic – pills for treat prostatitis difference prostatitis medications starve

  47. Nzrpol より:

    valacyclovir pills seldom – valacyclovir online flutter valtrex visit

  48. Gypcls より:

    claritin pills snow – claritin pills vision claritin scratch

  49. Djixcc より:

    priligy wink – priligy nevertheless priligy apprehension

  50. Ecjpgt より:

    claritin pills eventual – loratadine undoubted loratadine medication hail

  51. Idkhic より:

    ascorbic acid fire – ascorbic acid shoot ascorbic acid dish

  52. Etugao より:

    promethazine devote – promethazine joy promethazine linger

  53. Xltgvq より:

    biaxin pills former – albendazole add cytotec pills circle

  54. Mfexze より:

    fludrocortisone pills mansion – florinef neighbourhood lansoprazole faith

  55. Whrbkc より:

    order rabeprazole 20mg generic – buy reglan 20mg generic brand motilium 10mg

  56. Vingmn より:

    buy generic bisacodyl – buy liv52 paypal buy cheap generic liv52

  57. Ycdosy より:

    bactrim 960mg canada – keppra 1000mg us tobramycin over the counter

  58. Vmfvpf より:

    purchase hydroquinone creams – buy desogestrel 0.075mg for sale buy duphaston generic

  59. Ayoccj より:

    forxiga 10 mg uk – buy cheap generic sinequan buy precose 50mg pills

  60. Tdjvnd より:

    order griseofulvin – fulvicin 250mg over the counter gemfibrozil 300 mg usa

  61. Vuuezi より:

    dimenhydrinate cheap – where to buy actonel without a prescription actonel order

  62. Manxeg より:

    order enalapril pills – generic doxazosin where to buy latanoprost without a prescription

  63. Sjxrna より:

    buy etodolac 600mg sale – monograph for sale online order pletal generic

  64. Ezknnb より:

    purchase feldene without prescription – purchase feldene for sale order rivastigmine online cheap

  65. Vryfjr より:

    purchase nootropil – buy generic nootropil for sale order sinemet 10mg for sale

  66. Fkgfkf より:

    buy hydroxyurea – buy cheap ethionamide order robaxin

  67. Xcafif より:

    depakote 500mg uk – acetazolamide ca order topiramate 100mg online cheap

  68. Ddycrg より:

    disopyramide phosphate ca – purchase chlorpromazine generic chlorpromazine 100mg us

  69. Vmpdyo より:

    order aldactone 100mg for sale – naltrexone cheap naltrexone us

  70. Hykmjg より:

    cyclophosphamide without prescription – buy vastarel generic buy vastarel generic

  71. Ombhlk より:

    zofran tablet – buy oxybutynin cheap buy ropinirole paypal

  72. Ucmcto より:

    ascorbic acid 500mg drug – order compro without prescription compro price

  73. Njndem より:

    where can i order durex gel – how to order durex gel order latanoprost sale

  74. HenryHeK より:

    medication from mexico pharmacy: cmqpharma.com – pharmacies in mexico that ship to usa

  75. Lghvde より:

    generic minoxidil – generic finasteride finasteride medication

  76. Qynvuf より:

    order generic arava – buy actonel 35 mg generic order cartidin generic

  77. Xymdbn より:

    buy generic calan – verapamil 120mg uk buy cheap tenoretic

  78. Pibdda より:

    atenolol buy online – buy coreg 6.25mg sale coreg where to buy

  79. Hlkuxz より:

    atorlip for sale – order bystolic without prescription nebivolol 5mg generic

  80. Omtjvy より:

    gasex buy online – diabecon cost purchase diabecon online cheap

  81. Davidgab より:

    canada drugs online: canadian online drugs – trusted canadian pharmacy

  82. Michaelsaumb より:

    best canadian online pharmacy reviews: canadian 24 hour pharmacy – pharmacy canadian

  83. Davidgab より:

    canadian pharmacy tampa: canadian valley pharmacy – trusted canadian pharmacy

  84. Davidgab より:

    best online pharmacy india: top online pharmacy india – online pharmacy india

  85. Michaelsaumb より:

    indian pharmacy online: indian pharmacy paypal – buy medicines online in india

  86. Efkcjb より:

    lasuna pill – cheap lasuna sale purchase himcolin pills

  87. Davidgab より:

    indian pharmacy paypal: buy medicines online in india – best online pharmacy india

  88. Davidgab より:

    п»їlegitimate online pharmacies india: mail order pharmacy india – best online pharmacy india

  89. Davidgab より:

    canada cloud pharmacy: canadian pharmacy online – northwest canadian pharmacy

  90. Michaelsaumb より:

    mexican mail order pharmacies: mexican rx online – mexico drug stores pharmacies

  91. Davidgab より:

    reputable mexican pharmacies online: mexico drug stores pharmacies – mexican drugstore online

  92. Thomasjag より:

    http://ciprodelivery.pro/# buy ciprofloxacin

  93. Thomasjag より:

    http://amoxildelivery.pro/# where can you buy amoxicillin over the counter

  94. Thomasjag より:

    http://paxloviddelivery.pro/# paxlovid pharmacy

  95. Thomasjag より:
  96. Thomasjag より:

    http://clomiddelivery.pro/# buy generic clomid

  97. Mogzcr より:

    cheap norfloxacin without prescription – cheap flutamide without prescription confido usa

  98. Thomasjag より:

    http://clomiddelivery.pro/# where to buy clomid without dr prescription

  99. Thomasjag より:

    https://clomiddelivery.pro/# cost generic clomid for sale

  100. Thomasjag より:

    https://amoxildelivery.pro/# amoxicillin from canada

  101. Ghwgxe より:

    where can i buy speman – buy himplasia generic fincar for sale online

  102. Gnqccp より:

    order finasteride online – doxazosin online buy alfuzosin 10 mg generic

  103. Jnueod より:

    order terazosin 1mg for sale – tamsulosin sale purchase dapoxetine generic

  104. Xasqrs より:

    trileptal 600mg drug – buy pirfenex tablets levothyroxine sale

  105. Nathancoide より:

    Link pyramid, tier 1, tier 2, tier 3
    Primary – 500 links with inclusion inside pieces on publishing sites

    Tier 2 – 3000 web address +Redirect connections

    Lower – 20000 references mix, feedback, posts

    Employing a link structure is helpful for online directories.

    Necessitate:

    One hyperlink to the domain.

    Query Terms.

    Accurate when 1 query term from the website title.

    Note the additional feature!

    Important! First-level links do not overlap with Tier 2 and Tier 3-tier references

    A link network is a instrument for boosting the flow and link profile of a online platform or online community

  106. Yqsokc より:

    lactulose uk – order generic brahmi cheap betahistine 16mg

  107. Pvbdxx より:

    purchase imusporin eye drops – buy generic cyclosporine colchicine sale

  108. Dnuqum より:

    buy cheap generic calcort – buy cheap generic brimonidine order alphagan sale

  109. Chgiyn より:

    besivance without prescription – where can i buy besivance purchase sildamax pill

  110. Oysrua より:

    gabapentin over the counter – azulfidine 500 mg without prescription brand sulfasalazine

  111. Uompwa より:

    benemid tablet – order benemid 500mg online carbamazepine over the counter

  112. Agxjpi より:

    order celecoxib 100mg without prescription – celebrex 200mg cheap buy generic indomethacin over the counter

  113. Wdesuy より:

    colospa 135mg ca – buy colospa online cheap cilostazol online order

  114. Vbncxi より:

    purchase diclofenac pills – aspirin 75 mg ca aspirin generic

  115. Vkzrpf より:

    buy generic rumalaya for sale – rumalaya pill amitriptyline usa

  116. Rrzfyj より:

    buy pyridostigmine 60mg online cheap – buy generic sumatriptan for sale imuran 25mg brand

  117. Mauriceatorb より:

    indian pharmacy: top online pharmacy india – buy prescription drugs from india

  118. Mauriceatorb より:

    indian pharmacies safe: india online pharmacy – indian pharmacy

  119. Mauriceatorb より:

    buying prescription drugs in mexico: mexico drug stores pharmacies – best online pharmacies in mexico

  120. Mauriceatorb より:

    rx to go pharmacy: pharmacy prices on viagra – flonase pharmacy

  121. Mauriceatorb より:

    buying prescription drugs in mexico: buying prescription drugs in mexico online – mexican rx online

  122. Mehlen より:

    brand voveran – imdur canada buy cheap generic nimodipine

  123. Mauriceatorb より:

    cialis offshore pharmacy: Himplasia – top online pharmacy 247

  124. Mauriceatorb より:

    mexico pharmacies prescription drugs: buying prescription drugs in mexico – medication from mexico pharmacy

  125. Auccrp より:

    ozobax ca – order feldene 20 mg without prescription piroxicam drug

  126. Normanralry より:

    farmacia online madrid: farmacia online barata y fiable – farmacias online baratas

  127. Bdgwru より:

    oral meloxicam 15mg – order mobic without prescription toradol where to buy

  128. Normanralry より:

    farmacia online madrid: farmacia online envio gratis – farmacia barata

  129. Haiiap より:

    cyproheptadine 4 mg cheap – cheap cyproheptadine 4 mg zanaflex uk

  130. EdisonVew より:

    farmacia online: Cialis generico 20 mg 8 compresse prezzo – farmacie online sicure

  131. PatrickTog より:

    Farmacie online sicure: Cialis generico controindicazioni – farmacia online piГ№ conveniente

  132. Qijgej より:

    purchase trihexyphenidyl for sale – voltaren gel where to order purchase emulgel for sale

  133. JosephUttew より:

    rybelsus generic: rybelsus price – Rybelsus 7mg

  134. JosephUttew より:

    furosemide 40mg: furosemida 40 mg – lasix 20 mg

  135. JosephUttew より:

    ventolin over the counter: Ventolin inhaler – can i buy ventolin over the counter uk

  136. Tlbglz より:

    omnicef 300mg sale – order cefdinir 300mg online cheap buy cleocin generic

  137. Timothyvag より:

    Online medicine home delivery: Indian pharmacy online – top 10 online pharmacy in india

  138. Davidvaf より:

    п»їbest mexican online pharmacies https://mexicanpharma.icu/# mexican rx online
    reputable mexican pharmacies online

  139. Iwhxdj より:

    order isotretinoin 10mg generic – deltasone 5mg without prescription buy deltasone 20mg pill

  140. Jamesneime より:

    mexican drugstore online: medication from mexico – pharmacies in mexico that ship to usa
    buying from online mexican pharmacy

  141. Ohrrcf より:

    prednisone 5mg without prescription – prednisolone price zovirax online buy

  142. Ramonmub より:

    rybelsus price: buy semaglutide online – buy rybelsus online

  143. Mxlpwm より:

    permethrin generic – generic acticin buy tretinoin gel generic

  144. Ramonmub より:

    rybelsus pill: buy semaglutide pills – buy semaglutide online

  145. Ramonmub より:

    ozempic generic: ozempic online – ozempic

  146. Ramonmub より:

    buy cheap ozempic: ozempic coupon – buy ozempic

  147. Ramonmub より:

    Ozempic without insurance: ozempic online – ozempic cost

  148. Jemfkh より:

    buy cheap betamethasone – monobenzone cream monobenzone cheap

  149. NicolasVobre より:

    https://stromectol.agency/# ivermectin 1 topical cream

  150. Acfyfu より:

    metronidazole online – buy flagyl 400mg buy cenforce without prescription

  151. Utxzuv より:

    generic augmentin 625mg – cheap levothyroxine pills buy synthroid 75mcg online

  152. Ofivlj より:

    where can i buy cleocin – purchase indomethacin sale buy generic indomethacin

  153. Trentwem より:

    http://clopidogrel.pro/# plavix best price
    ed men

  154. Ntived より:

    buy crotamiton online – aczone where to buy purchase aczone

  155. Russellgak より:

    pin up kz: pin up – pin up

  156. Russellgak より:

    1хставка: 1хставка – 1хбет

  157. Xxxcht より:

    buy generic modafinil for sale – brand provigil 100mg order melatonin generic

  158. Rzislr より:

    bupropion order online – bupropion order order shuddha guggulu generic

  159. JefferyPal より:

    пин ап 634: pin up kz – пин ап казино онлайн

  160. Nmiiko より:

    xeloda 500 mg sale – naproxen 500mg ca danazol 100 mg over the counter

  161. Egaitj より:

    buy generic prometrium – cheap ponstel generic order clomiphene pill

  162. Leroyfit より:

    online shopping pharmacy india Pharmacies in India that ship to USA world pharmacy india

  163. Leroyfit より:

    best online pharmacy india Indian pharmacy worldwide delivery pharmacy website india

  164. Leroyfit より:

    indian pharmacy indian pharm 24 buy medicines online in india

  165. Onrlkl より:

    buy alendronate paypal – buy generic pilex online buy cheap generic provera

  166. Uzbyjh より:

    purchase norethindrone – norethindrone 5 mg usa order generic yasmin

  167. Sycthg より:

    buy dostinex 0.5mg generic – alesse where to buy buy alesse paypal

  168. Civycz より:

    buy estrace 2mg online cheap – buy generic anastrozole over the counter anastrozole generic

  169. JamiefanCe より:

    https://indianpharmacyeasy.com/# indian pharmacies safe

  170. JamiefanCe より:

    https://mexicanpharmgate.com/# reputable mexican pharmacies online

  171. Uuvfux より:

    バイアグラの飲み方と効果 – г‚·гѓ«гѓ‡гѓЉгѓ•г‚Јгѓ« – 50mg/100mg г‚їгѓЂгѓ©гѓ•г‚Јгѓ« гЃЉгЃ™гЃ™г‚Ѓ

  172. Tvligq より:

    プレドニンジェネリック йЂљиІ© – г‚ўгѓўг‚­г‚·г‚·гѓЄгѓійЂљиІ©гЃЉгЃ™гЃ™г‚Ѓ アジスロマイシン гЃ©гЃ“гЃ§иІ·гЃ€г‚‹

  173. DarioKalay より:

    пинап казино: пин ап кз – пинап казино

  174. AdolfoCer より:

    best online pharmacies in mexico: Mexican Pharm – medicine in mexico pharmacies

  175. Tnaneh より:

    гѓ—гѓ¬гѓ‰гѓ‹гѓі жµ·е¤–йЂљиІ© – ドキシサイクリン通販おすすめ アキュテイン通販で買えますか

  176. Wdaoim より:

    eriacta wand – zenegra pills general forzest remain