1
編輯我的主題,以便立即在我的頁面標題右側放置一個Facebook圖標。將PHP Echo添加到WordPress標題末尾
在舊圖標(HTML)下面的代碼工作和圖標放置在標題旁:
<h1 class="page-title"><?php _e('Nothing Found', 'catch-adaptive'); ?><a class="genericon_parent genericon genericon-facebook-alt" title="Facebook" href="https://www.facebook.com/karen.b.russell.54" onclick="javascript:window.open('https://www.facebook.com/karen.b.russell.54'); return false;"><span class="screen-reader-text">Facebook</span></a></h1>
現在我試圖用一個插件給我的PHP代碼:
<?php echo DISPLAY_ULTIMATE_PLUS();?>
我已經做到了這一點:
<header class="entry-header">
<h1 class="entry-title"><?php the_title(); echo DISPLAY_ULTIMATE_PLUS();?></h1>
</header><!-- .entry-header -->
的問題是,回聲顯示p的下方的圖標年齡標題,而不是在它旁邊。
如何使用此插件的PHP代碼將圖標定位到標題的右側?
您可以在http://healthylifeadvisors.com/