-
AuthorPosts
-
December 21, 2012 at 3:04 pm #183321
Hi everybody,
I think I need a little help.I’m working on a website which use JA University Template.
I’ve been asked to build a linkabile background for the website. I found out how to do it, and in a local template it works, but I have a problem with the JA template, because I should insert a line of code inside the “body” tag of the index.php page of the template.
Little problem: JA template don’t have index.php page. Well, they have it, but it’s quite different from ones of other templates, I think you understand what I mean…Could please help me to solve this problem? Where I could find something similar to index.php page of other tempatles?
Thanks in advance.
pavit Moderatorpavit
- Join date:
- September 2007
- Posts:
- 15749
- Downloads:
- 199
- Uploads:
- 2274
- Thanks:
- 417
- Thanked:
- 4028 times in 3778 posts
December 21, 2012 at 5:40 pm #477106Hi
You can make your changes on this file pluginssystemjat3jat3base-themesdefaultpagedefault.php in the <body></body> tags
January 5, 2013 at 3:49 pm #478552Hi pavit,
thanks for your answer and sorry for my late reply, but only today I worked on that project.I would like to make the background clickable, with a link, because of that I needed to change the file.
What surprised me is that in the file you told me there is already some code similar to the one I would like to insert and when I put my own code, it doesn’t work at all.
The code I have to insert in Body tag is:
<a href=”http://www.google.com” target=”_blank” class=”background-link”><span>Google.com</span></a>
just after the beginning of tag body.But in the file there already is a code similar to that and is this:
<a name=”Top” id=”Top”></a>With other templates my code worked, maybe here I’m doing something wrong.
I try also to do it like this:
<a name=”Top” id=”Top” href=”http://www.google.com” target=”_blank” class=”background-link”><span>Google.com</span></a>
but it doesn’t work either.Can you help me out with this thing?
Thank you very much
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
January 7, 2013 at 4:14 am #478647Hi dicoste,
You should put your code after “<a name=”Top” id=”Top”></a>”. It should be:
<a name=”Top” id=”Top”></a>
<a href=”http://www.google.com” target=”_blank” class=”background-link”><span>Google.com</span></a>Regards.
January 7, 2013 at 10:56 am #478709Hi Stork11,
I’m sorry, but it doesn’t work.
There is some code to put also in the css file. Is it possibile I right it in the wrong css file?
The code is this:body
{
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}.background-link{
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 900px;
z-index: 1px;
background-image:url(****.jpg)
}
.background-link span {
display: none;
}I put it in the file template.css I find in the folder templates/ja_university/css.
Is that right? Otherwise, may you tell me which is the right css file?
Thank you
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
January 8, 2013 at 10:02 am #478900Hi dicoste,
You placed styles in right CSS file. But you need to clean JAT3 cache and browser cache before refreshing the front-end to see the changes.
Regards
January 10, 2013 at 5:39 pm #479301I did that, but it still doesn’t work…
Any other possible idea?
Thank you
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
January 11, 2013 at 3:03 am #479344Hello dicoste,
Can you PM me with your site information (your site URL, your site admin account) and your FTP account? So I can diagnose this problem.
BTW, please include this forum thread URL in your PM, so I can follow it.
Regards.
January 16, 2013 at 10:43 am #480021Hi,
the website is not online…If you tell me what to check I’ll follow your instructions!
Thank you
Stork11 FriendStork11
- Join date:
- March 2011
- Posts:
- 2273
- Downloads:
- 0
- Uploads:
- 142
- Thanks:
- 55
- Thanked:
- 431 times in 393 posts
January 17, 2013 at 4:47 am #480101Sorry, I need your site information to check in code. Because I don’t know what code you changed in your files.
Hope you understand.
Regards.
January 29, 2013 at 5:29 pm #481555I understand, but I just insert this in file “template.css” in the folder templates/ja_university/css (after ‘body’ and ‘body#bd’:
.background-link{
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 900px;
z-index: 1px;
background-image:url(../../../images/***.jpg)
}
.background-link span {
display: none;
}and then this in file “deault.php” in directory you told me:
<a name=”Top” id=”Top”></a>
<a href=”http://www.google.com” target=”_blank” class=”background-link”><span>Google.com</span></a>I did nothing else…
thank you
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
January 30, 2013 at 4:38 am #481607Hi dicoste,
I’m not sure what you want to ask ? Please make me more clearly!
And in advance, send me your URL, both admin/ftp accounts of your site, so i can check it for you without any messages.Regards,
—
LeoJanuary 31, 2013 at 9:30 am #481824Hi Leo,
I need to understand how I can insert a background with link in this template. I just want the who comes on my website, can click on the background of the website and go to a sponsored link.I did only the two modifications I wrote before in template files and with other template it worked, but with this no.
I can’t give you URL and other stuff because the site is not online.
If you have some other indication on how build a background with link, please tell me, I’m here to learn.
Thank you
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
February 1, 2013 at 10:43 am #481994Hi dicoste,
As you know that each block in template has its own background. It means that you have to define which block you want to change background with image. Then call the right class in default.php
Regards,
—
Leo1 user says Thank You to phong nam for this useful post
February 3, 2013 at 7:45 am #482207That’s is what I thought I did…
I would like to change the background of the entire website, the “general” background, if I may call it like that.May you help me find the solution of this problem?
Thanks
-
AuthorPosts
This topic contains 16 replies, has 4 voices, and was last updated by phong nam 11 years, 9 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum