最近搜索
没有最近搜索

Manuel
已加入2021年5月28日
·
最后活动2021年10月27日
关注
0
关注者
0
活动总数
12
投票
0
订阅
2
活动概览
标记
文章
帖子
社区评论
文章评论
活动概览
的最新活动 Manuel
Manuel 进行了评论,
@Wes - So I got the icon and the English search placeholder to work both at the same time with the code you gave me but the French translation still won't show after I tried a few more options.
Let me know if you find how to make this work.
Here's the active code I have now:
//Find Video
$('ul.article-list li').html(function(i, t) {
return t.replace('Video:', '');
});
//Change Search Placeholder
$('#query').attr('placeholder', 'Search AQUAOVO Support');
if (currentLanguage === 'Français') {
$('#query').attr('placeholder', 'Recherche Support AQUAOVO');
}
查看评论 · 已于 2015年3月05日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
@Wes - I ran into another issue with my customizations.
Following you instructions I copied two sets of codes in my JS under the "$(document).ready(function() {" line, one for the Video: icon and one for the search box placeholder.
My problem is that only the customization with the code directly under that line is working and not the ones that come right below. I'm pretty sure it's just a question of misplaced punctuation in the code but I'm not familiar enough to find what and where.
Can you help? Below are the first 20 lines of my JS tab.
Thanks!
/*
* jQuery v1.9.1 included
*/
$(document).ready(function() {
//Find Video: replace with video icon in Article List
$('ul.article-list li').html(function (i, t) {
return t.replace('Video:', '');
$('#query').attr('placeholder','Search AQUAOVO Support');
if(currentLanguage === 'Français') {
$('input').attr('placeholder','Recherche Support AQUAOVO');}
});
// social share popups
$(".share a").click(function(e) {
e.preventDefault();
window.open(this.href, "", "height = 500, width = 500");
});
查看评论 · 已于 2015年3月04日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
@Wes - I tried to input the code to get the translation of the Search box placeholder when the language is French but it doesn't work. I just get the English text for both languages. Here's the code I have in my JS:
$(document).ready(function() {
$('#query').attr('placeholder','Search AQUAOVO Help Center');
if(currentLanguage === 'Français') {
$('input').attr('placeholder','Recherche support AQUAOVO');}
查看评论 · 已于 2015年2月25日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
Awesome thanks! Another question: where can I edit the text (Search) displayed in the background of the search box field on the home page of my help center?
https://www.dropbox.com/s/3dlqv7buoha8hqb/Screenshot%202015-02-25%2015.30.57.png?dl=0
查看评论 · 已于 2015年2月25日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
Thanks, I already changed it for the video camera!
https://www.dropbox.com/s/t9h7b67v0ucsf6m/Screenshot%202015-02-25%2014.23.49.png?dl=0
And what about if I wanted to be able to use more than one icon with other tag words? What would I have to do?
查看评论 · 已于 2015年2月25日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
Yep, working just fine now. Thanks!
https://www.dropbox.com/s/k4uxyw1n51w6now/Screenshot%202015-02-25%2013.45.43.png?dl=0
查看评论 · 已于 2015年2月25日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
Ok so I think I did everything but the Video: tag still won't be replaced by the icon. Here are 3 screenshots of my document head, css and JS tabs:
https://www.dropbox.com/s/3ycmpseol54zgfs/Screenshot%202015-02-25%2013.29.37.png?dl=0
https://www.dropbox.com/s/4dkjag6ngyn4zwb/Screenshot%202015-02-25%2013.29.16.png?dl=0
https://www.dropbox.com/s/ng5ik1d5yydumzc/Screenshot%202015-02-25%2013.26.20.png?dl=0
Is there anything wrong?
查看评论 · 已于 2015年2月25日 发布 · Manuel
0
关注者
0
投票
0
评论
Manuel 进行了评论,
Hi Wes,
I'm trying to get the video label showing in my article title but it doesn't seem to be working. I've copied all the codes in place and added the "Video:" tag in my title. Anything else I could try? Thanks!
查看评论 · 已于 2015年2月24日 发布 · Manuel
0
关注者
0
投票
0
评论