No background in GB
-
How can I reformat the code of the guest book? I get no background and decentralized …
http://giadaperlinifoto.zipx.it/?page_id=101&preview=true&preview_id=101&preview_nonce=c84174ac32
This is my situation…you can see in other pages i have a black background…please help me! I love your guest book! ^_^ Thank you
Giada
-
Hello Nimiael/Giada
Im glad you like it. What do you mean black background? I can’t get to your domain, but it sounds to me like its a CSS issue. You might want to try and remove any styles that are affecting it because comment pub will use your themes styles except when it gives you an error log in which case it will be a red dialog box above the upload field.
If you could do a paste bin with your code or even a screen shot I might be able to assist you further.
I hope this helps,
AndySorry…. this is the correct link
http://giadaperlinifoto.zipx.it/?page_id=101
If you look to the other pages i have a “black body”…but in the guestbook no…i need to have a “body” for the guestbook π
ps.sorry for my bad english Γ§_Γ§
This is what I get when loading your site:
“Oops! Google Chrome could not connect to giadaperlinifoto.zipx.it”Your should have an ID called “comments” that will wrap all the comments and a class called “commentlist”.
So to add a background color you would need something like:#comments{
/* This will affect the comment list container*/
background-color: #ccc; /* light grey */
}.commentlist{
/* This will affect the comment list*/
background-color: #4463bf; /* light blue */
}I don’t know why i have those trouble with the connection…now it’s seems ok.
The GB is also in the left of the monitor…if you watch the Guestbook page and another page (blog or galleria) you can see the difference π
Ah, and I have some issue with the page order too…i’ve tryed to give a number to any page but i don’t have solved the problem.
The guestbook seems out from the body of the page (but it’s like there isn’t any body).
So I was able to get most of your site through a proxy since San Diego, CA might be blocked by your server, so in reality the following code is more of guessing.
Update your the comment_pub_page.php with this code:
http://pastebin.com/7tZaw3LxYou can add the following code to your theme’s css file:
.comment:after {
/* Clear avatars */
content: ”;
display: table;
clear: both;
}Hope this helps.
No, i show you two screenshot so you can understand me well π
First img…this is how the guestbook looks like
and…
Have i explained well? π Thank you!
Hello Nimiael,
This link has the updated code just for your site http://pastebin.com/7tZaw3Lx all you have to do is copy and paste it into comment_pub_page.php
doesen’t work for me… π i have the guestbook not in the page, not in the center….
This is what I get with the code changes
http://i1360.photobucket.com/albums/r656/AndyNMG/updated-code-view_zps63eb1894.gifSo lets try another approach if that is the view you want, this will add extra code to your theme.
#primary{
padding: 0px 0px;
width: 740px;
margin: 0px 0px 0px 250px;
float: left;
}Are you developing this site locally in your computer? Because you and I don’t see the same updates.
This code was taken from the theme you are using only changed the ID from #casing to #primary which is the container for the Guestbook page.
Add the following code at the end of your theme’s style sheet:
#primary{
padding: 0px 0px;
width: 740px;
margin: 0px 0px 0px 250px;
float: left;
background-color: black; /* Forgot to add the black background */
}Aaaalllright! We are almost there! π Thank you…but now i don’t have all the other things that i have in the other pages and not the samy bg of the other pages! How can i fix this? π
THANK YOU VERY MUCH!!!!
edit: ok, i solved for the BG π
That will be a complex one since it requires you to merge both the Guest Book template and a your themes template.
If you want to give it a try:
1. download and make a copy of comment_pub_page.php (this is inside your theme folder)
2. download and make a copy of page.php
3. open page.php
4. you might see something like get_header() at the top others like get_siderbar(), get_footer() <– this is the code that will add the features you see in the other pages
5. Between the above tags you will see a bunch of code <– this is you don’t need but don’t delete
6. open comment_pub_page.php
7. You will see get_header() at the top others like and get_footer() and the code that makes the Guest Book work so don’t touch these
8. the code you saw in step 4 (this code starts with “get_”) copy and replace get_header() with the one’s that were in the same location inside the page.php do the same for the code that was next to get_footer()
9. uploadIf it didn’t work you will a lot of errors or it wont display properly so re-upload the originals.
- The topic ‘No background in GB’ is closed to new replies.