Home Page Help
-
Hi all,
First up great theme, even for a real novice like me !
I need help getting the home page to work correctly I currently have 2 home pages at times within my site, both are the same without my original content
I just need one obviously, and want to add the text from my one home page into this home page and just create one home page with the images and the text in one page, the problem is i can see the home page text from my old theme on my pages within my dashboard but can’t see the home page text anywhere on the home page.
If you click on this page you will see it shows 2 home pages,
Any help will be much appreciated !!
Many Thanks !!!
-
First of all, go to your menu in wp-admin/appearance/menu and remove one of the home menu items.
Then go to wp-admin/settings/reading, and set your homepage to a static page, then choose the page you want as your homepage in the dropdown, this should do the trick.
Hope you have luck.
Thanks dadman it worked a treat !!
Hi all,The static page as resolved one issue, however I want to add my original text about us page underneath the slider image and above the 3 images below the main image on the home page.
I have a page within my dashboard which explains about the company which I had from a previous theme and want to add it to the current home page, including the images which are there but can’t see any option where to add the content.
My site
It’s as if I have a page within my dashboard which is not being shown
Any help is much appreciated
Many Thanks !!
Hi paco8723
To show the content of a page (your about page), within another page (your homepage) is not at default WP feature.
I don’t know how you build your homepage, is it possible for you to copy/paste the content and pictures form the aboutpage, in to the homepage at the position where you want it?
There is a page in page plugin, maybe it’s the way. I have never used it, and can’t tell you about it, here is a link to it page in page plugin
I would go with option one, why use a plugin when there is an easier and more natural way of doing it.
But it’s all up to you, the aim is to do, what you are most comfortable with.
Hope you have luck!
Ps. your homepage takes a very long time to load. I’m in Denmark, it’s not that far away from UK, don’t know if it’s of importance. Maybe it’s just a local problem, here in DK.
Hi again.
I forgot to mention, if you want a menubutton to your aboutpage, then head back to the wp-admin/appearance/menu and check your aboutpage in the box to the left.
It will then show up in the menu at the right, save the menu, head back to the homepage and refresh. Then there will be an aboutpage in your menu.
Hope you have luck.
Hi paco8723,
What I would do is use Secondary HTML content plugin.
This allows you to have multiple WYSIWYG (editors) in one page, so you can call upon that extra html content within your template by simply placing in the code:
<?php the_secondary_content('What you named it'); ?>
replace what you named it with what you named the secondary content box in the writing section of the admin. You can add more than one box too.
Now for the images and text, it looks as though you would be better of having those as posts and assigning a category to them then calling the category posts in your template. You can do this by placing in the following code in your template where you want them to appear:
<?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="postsingle" id="post-<?php the_ID(); ?>"> <div class="entry"> <!-- ////// THIS IS TO CALL THE POST FROM THAT CATEGORY, ENTER THE CATEGORY NUMBER BELOW /////// --> <?php $recent = new WP_Query("cat=ADD CAT NUMBER HERE e.g. &showposts=4"); while($recent->have_posts()) : $recent->the_post();?> <span class="featured-box"> <!-- ////// THIS IS TO CALL THE ADDITIONAL EDITOR BOX FOR THE IMAGE, BE SURE TO NAME THE SECONDARY CONTENT post image IN THE WRITING SECTION OF THE ADMIN AND ASSIGN IT TO POSTS TICK BOX /////// --> <?php the_secondary_content( 'post image' ); ?> <!-- ////// THIS WILL CALL THE TITLE OF THE POST /////// --> <h3><?php echo get_the_title(); ?></h3> <div class="content-ver-sep"></div><br> <!-- ////// THIS IS WILL CALL THE MAIN CONTENT IE. THE TEXT /////// --> <?php the_content(); ?> </span> <?php endwhile; ?> </div> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?>
hope this helps!
Many Thanks for your replies guys !!
But I have something seriously wrong here, the page which I have in my dashboard which shows me lots of text within my dashboard as a page, only shows up as this so the question is how do I add text to this page along with what is already there, Is it possible to add text to this page here ??
Mryawn I understand what you are saying but is there an easier solution so I can just add text to this page ??
Thanks you both for your support !!
Kind Regards Paco8723
okay, so in your dashboard in pages you have an “about page” and in that there is a load of text but it’s not showing up on the front end of the site?
Open your template and where you want “the content” of that page to appear addd the following code:
<?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> </div> <?php the_content('<br />Read the rest of this entry »'); ?> </div> <?php wp_link_pages('before=<div id="pagination"><b>Continue reading: </b>&after=</div>&next_or_number=number'); ?> <?php endwhile; else: ?> <?php endif; ?>
does that help? apologies but just trying to an understanding of what you’re after.
Hi MrYawn,
Many Thanks Great !!
It sort of worked except that the text was at the top above the main image instead of in between the main image and the 3 smaller ones,
Is there a way I can place the code you have gave me into the this page so that it sits in-between the top and bottom 3 ?
If so where would I insert the code ?
<div id=”slide-container”>
<div id=”slide”>
<img src=”<?php echo esc_url(of_get_option(‘banner-image’, get_template_directory_uri() . ‘/images/slide-image/slide-image1.jpg’)); ?>”/>
<?php if ( esc_url(of_get_option(‘slide-image’, get_template_directory_uri() . ‘/images/slide-image/slide-image2.jpg’)) != ” ) : ?>
<img src=”<?php echo esc_url(of_get_option(‘slide-image’, get_template_directory_uri() . ‘/images/slide-image/slide-image2.jpg’)); ?>”/>
<?php endif; ?>
<?php if ( esc_url(of_get_option(‘extra-image’, get_template_directory_uri() . ‘/images/slide-image/slide-image3.jpg’)) != ” ) : ?>
<img src=”<?php echo esc_url(of_get_option(‘extra-image’, get_template_directory_uri() . ‘/images/slide-image/slide-image3.jpg’)); ?>”/>
<?php endif; ?>
</div>
</div> <!– slide-container –>Page Here
Again I really appreciate you help !!
I can’t see what you mean, when I go to the link here (your link), I can’t see the 3 pictures in the, Our Services section at the bottom. I see the 3 above though, with an excerpt beneath.
How did you make the Home page? In the editor? Via shortcodes? Or with some drag’n drop feature or plugin?
Is it a theme specific page, then maybe the code isn’t coded to show content, maybe just featured image.
I can see in the Simplify Theme Demo, if I take a look with Firebug, that there is a small difference, in the code, you use 2 linebreaks
<br>
more, than they use. And the headlines and paragrahps are empty.I don’t know if it makes a difference, I’m just trying to find a reason why it doesn’t work.
Insert the code inside a div and place it between the divs of where you want it to appear. so in your case between the slide-container and featured-boxes
for example:
<div id="slide-container"> content here </div> <div id="page-content"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="entry"> </div> <?php the_content('<br />Read the rest of this entry »'); ?> </div> <?php wp_link_pages('before=<div id="pagination"><b>Continue reading: </b>&after=</div>&next_or_number=number'); ?> <?php endwhile; else: ?> <?php endif; ?> </div> <div id="featured-boxes"> content here </div>
then add css:
#page-content { width:100%; float:left; margin:10px 0px; }
Hi Dadman,
I know there are 3 images missing at the bottom which I’ve deleted for the moment, above that you have 3 images here
Roofing Services Flat Roofing Roof Repair Service
I need to insert the text above these 3 images and below the large blue image at the top Felt Roofing & much more.
So if you look with firebug do you think it’s meant to allow text along with images ??
Hope I make sense ?
Many Thanks Paco8723
Did adding the snippet of code I supplied between the banner and 3images work?
Hi MrYawn,
No mate as it ended up like this
- The topic ‘Home Page Help’ is closed to new replies.