最近搜索


没有最近搜索

Mason Bjerke's Avatar

Mason Bjerke

已加入2021年4月15日

·

最后活动2023年6月29日

关注

0

关注者

0

活动总数

4

投票

1

订阅

2

活动概览

的最新活动 Mason Bjerke

Mason Bjerke 进行了评论,

社区评论 Q&A - Help center and community

Hey Ifra Saqlain,

Where does the following go? Is it in script.js or in the home_page.hbs? I am having the same issue as Cara:

$(document).ready(function(){

if ($('.blocks-item > a > span:contains("CATEGORY NAME ONE")')) {
   $(".blocks-item > a").attr("href", "amazon.com");
}
  
else  if ($('.blocks-item > a > span:contains("CATEGORY NAME TWO")')) {
   $(".blocks-item > a").attr("href", "google.com");
}
});



Note: Remove CATEGORY NAME ONE and write your category name for which you wanna add custom url.
Remove amazon.com and write your URL.

查看评论 · 已于 2023年2月14日 发布 · Mason Bjerke

0

关注者

0

投票

0

评论