我只想问一下如何将我的wordpress页面标题分为2行,并以中断为中心。它应该是这样的:
Arthritis Pain & Treatment
by NUCCA Chiropractor, Dr. Devin Luzod & Spinal Care of Nevada Las Vegas
我写这样的页面标题:
Arthritis Pain & Treatment <br><font size="+2">by NUCCA Chiropractor, Dr. Devin Luzod & > Spinal Care of Nevada Las Vegas</font>
我得到了我想要的确切结果,但我在每一页之间都有一条奇怪的线。那就是:
by%20NUCCA%20Chiropractor,%20Dr.%20Devin%20Luzod%20&%20Spinal%20Care%20of%20Nevada%20Las%20Vegas')}else{var%20b=a2a_config.localize.BookmarkInstructions%20||%20'Press%20Ctrl+D%20to%20bookmark%20this%20page';alert(a2a_config.localize.BookmarkInstructions)}" title="Bookmark/Favorites" rel="nofollow" target="_blank">
我不知道如何删除它。
答案 0 :(得分:0)
在标题中添加逗号,现在请在下面找到解决方案。
<?php echo str_replace(',','<br />',get_the_title()); ?>
用标题中的break替换逗号。