[SOLVED] How can I insert a picture in a custom page template?
Hy guys! I've stumbled into this problem.... I am trying to insert a small image in a homepage template I did, but it just doesn't seem to show...
First thing I tried was to insert it inside the custom homepage.php file (copy of index.php with some little modifications), but I couldn't get it to show (I tried with img src and almost all other options I could find reading documentation). I also realised that I could include it inside the loop (although I'd rather not).I went to ATO -> Style and edit center column -> Content inside loop and tried to insert it there. Still nothing. Anyone can give me an idea what am I doing wrong? Or what/where to search for more information? Thank you! I am running WP on a localhost trying to play arround and learn so the page it's not online. |
What vesrion of Atahualpa, WP and PHP?
where are you trying to put the image? Do you want it as a background. part of each post?? is this homepage going to be static or have posts on it? |
I have Atahualpa 3.4.3 installed on WP 2.8.4 currently installed on localhost.
I want to insert the image several times (as logo/bullet in a list) on my homepage. The homepage is static, but will also show the last post. What I did so far was to copy index.php into homepage.php which I applied as template for my static Home page. I managed to tweak this template so that it shows me the last post, and under this Loop I want to show a list with my categories (with this logo/bullet in front). I don't know so much programming, and the smallest thing I do is only after I spend hours on documentation. Now I would have a few questions: For what I want to do with that list logo/bullet, is it better to use the custom page template, the options from ATO -> Center Column or one of those bfa_ata_idunnowhat files (btw, how do they work? I didn't figure them out yet.)? Also, following Flynn's tutorial in changing the small bars in front of widget item I couldn't get the image to show. So I am thinking it might be some trick I do/don't do wrong/right. Have any idea? Sorry for disturbing, Rere. |
so let me get this straight, you want your home page to show the latest posts and then under it, some categories - is this right?
If so, why not just add a new widget to the end of ATO->Style & edit CENTER COLUMN->Content BELOW the LOOP with a category widget? The home page defaults to your posts anyway. This way you don't have to worry about carrying the code forward for each release. |
1 Attachment(s)
Quote:
Yeah, that would be an option to, but not quite what I would want to do. In the attachment you have more or less the idea of how I wanted this site to look... But I am afraid I lack the proper skills to transform it from that picture into a website itself. If you have any hints, they are mostly welcome. |
The closest I can think of is create tables with the layout you want in HTML and paste them into a blank page. Then insert widgets, photos or text into the tables.
Works for me but I haven't found how to control table colors or why they have colors http://sparks-mexico.com/about/mexico-info-links/ |
I've made several custom post templates for columnists who want their photo and brief bio to show at the bottom of their posts. Like this: http://www.larchmontgazette.com/care...or-introverts/
When creating this kind of post, I get the template from the dropdown list of templates. I use the Custom Post Template plugin to display that list. Is this what you mean? I can paste in the template code if you like. |
I turned off Hover effects ... but I was afraid it would do the same for the menu. It didn't
|
I am starting to get a bit hold of all the wonders that wordpress seems to keep... thanks for the suggestions. :) when I have little knowledge, everything is helpful (even if it doesn't spare the time to try it)...
|
here is a start on how you can get what you want, there is still some styling that needs to be done. Save this as your homepage.php - AFTER SAVING YOUR ORIGINAL
HTML Code:
<?php |
Thanks a lot! I have already started playing with the theme on my on (even though it's extremely "painful"). the custom homepage I created looks more or less the same as what I designed and the code I used is similar to what you recommended. But it was only after hours and hours of documentation I could do it... and now I am still learning.. again, thank you very much!
|
All times are GMT -6. The time now is 11:44 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.