|
#1
Sep 29, 2009, 03:03 AM
|
|
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.
|
#2
Sep 29, 2009, 05:11 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#3
Sep 29, 2009, 08:44 AM
|
|
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.
|
#4
Sep 29, 2009, 10:18 AM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#5
Sep 30, 2009, 01:30 AM
|
|
Quote:
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.
|
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.
Last edited by juggledad; Sep 30, 2009 at 10:05 AM.
|
#6
Sep 30, 2009, 07:04 AM
|
|
|
56 posts · Apr 2009
Jocotepec, Mexico
|
|
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/
|
#7
Sep 30, 2009, 08:03 AM
|
|
|
|
1,333 posts · Feb 2009
Wordpress 3.4.1, Atahualpa 3.7.7
|
|
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.
|
#8
Sep 30, 2009, 09:28 AM
|
|
|
56 posts · Apr 2009
Jocotepec, Mexico
|
|
I turned off Hover effects ... but I was afraid it would do the same for the menu. It didn't
|
#9
Sep 30, 2009, 02:58 PM
|
|
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)...
|
#10
Oct 2, 2009, 07:56 PM
|
|
|
|
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
|
|
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
/*
Template Name: homepage template
*/
?>
<?php // Do not delete these lines ?>
<?php /* get all options: */
include (TEMPLATEPATH . '/functions/bfa_get_options.php');
get_header();
#global $bfa_ata;
// You can start editing below:
?>
<?php
# ================================================
?>
<table cellspacing="40" border="0" width="100%">
<tr>
<td id="middle">
<h3 style="text-align: left; color: #797C00;">Latest from Itoculo</h3> <img src="http://www.cashewcenter.com/wp-content/gallery/farmers-club/thumbs/thumbs_Farmers Club14.jpg" width="215" height="161" />
</td>
<td id="middle">
<h4>Welcome</h4>
The Center in Itoculo strives towards better conditions for people in rural areas, dealing with different intervention from agricultural production, farmers training, agro-processing/agribusiness, improving the situation in water & sanitation, organizing communities for diseases prevention and promoting preschools where the young generation is in focus
</td>
</tr>
<tr>
<td id="middle">
<h3>Latest From Itoculo</h3>
<?php echo wp_list_categories('depth=1&title_li='); ?>
</td>
</tr>
<tr>
<td id="middle">
<h2>Read our Blog</h2>
<ul>
<?php $catposts = get_posts('numberposts=5');
foreach($catposts as $post) : ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endforeach; ?>
</ul>
</td>
<td id="middle">
Visit out gallery
<img src="http://www.cashewcenter.com/wp-content/gallery/green-action/thumbs/thumbs_Green Action17.jpg" width="215" height="161" />
</td>
</tr>
</table>
<?php
# ================================================
?>
<?php /* This outputs the "Not Found" content, if neither posts, pages nor attachments are available for the requested page.
This can be edited at Atahualpa Theme Options -> Style & edit the Center column */
#bfa_center_content($bfa_ata['content_not_found']); ?>
<?php bfa_center_content($bfa_ata['center_content_bottom']); ?>
<?php get_footer(); ?>
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
|
#11
Oct 15, 2009, 03:00 AM
|
|
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!
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Linear Mode
|
|