2013-10-04 117 views
0

我想在main template.index模板中插入可點擊的鏈接,該模板將重定向到Pluto主題頂部的JavaScript按鈕中的一個頁面。文本在那裏,但是當你點擊它時,它不會重定向你,但會打開我不想要的東西。Pluto主題wordpress

這裏是我的代碼:

<a href="javascript:;" data-rel="#homepage_wrapper" id="expand_button" <?php 
    if(empty($pp_display_hide_homepage)) { 
     echo 'style="display:block;"'; 
    } 
?>> 
    <p style="color: #402D1F; font-weight: bold; font-size: 20px; "> 
     <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/icon_arrow_right.png" alt="" id="arrow_picture"/> 
     Click here for more info 
    </p> 
</a> 

這一下,以瞭解更多信息,我希望它是一個可點擊的鏈接,我重定向到另一個網頁在WordPress。

+0

你有文字,但你還沒有給出任何鏈接,那麼它如何重定向..?它應該是這樣的。 Click here for more info

回答

0

一個普通的HTML鏈接看起來是這樣的:

<a href="yourUrl">link text</a> 

它看起來像你有你的鏈接的圖像標籤,這樣的話就應該是這樣的:

<a href="yourUrl"><img src="/images/icon_arrow_right.png" alt="" id="arrow_picture" />link text</a> 
+0

看看我的網站在這裏http://chillaz.co.za....在上面點擊瞭解更多信息。我想要點擊並重定向到特許經營機會頁面而不是出現的彈出窗口...我只能在主模板index.php中編輯它。所以當我輸入 click for more more information時...文本消失。原來的代碼是以上...我想也許這是javascript的ahref令人不安...我不知道,請幫助我 – user2845860

+0

該鏈接無法正常工作..你可以再發布一次嗎? –