Remove Blog Title and Listing Specific Posts on a Page
Hi there
I copied index.php and created a templete called Europe_2013.php. Then I created a page which I plan on using as my blog while overseas but I'm having problems tweeking the layout. I'd like to delete the following from this page ONLY Blog Title (Untie the Knots......) RSS Feed Search box Move the header image up as far as possible, which will hopefully move the map up the page too. Any suggestions as to what changes I need to make to Europe_2013.php at achieve this? I've also tried to use the List category posts plugin to insert a shortcode on the europe-2013 page, so that all posts in the Travel category (ID 187) appear on this page, with the most recent on top, but I'm just not getting the code right. Can anyone tell me what I'm doing wrong - or can I add code to Europe_2013.php template to achieve this without a plugin? Thanks in advance Cathy |
I would use CSS and "List Category Posts" to style my blog page as opposed to creating a page template which would get overwritten in a theme update.
|
Thanks Larry. Can you suggest websites or (old fashioned) books where I can lean about this. Everything I done so far has been thru Google search chest and this forum.
|
This stuff changes too fast for most books to be of any value and when you start mixing different CSS and plugins there is only experience with CSS and being able to wrap your head around what the plugin can do. I have bought books on CSS and never used them.
My advice is to get real familiar with Firebug. I "play" with a lot of CSS virtually with that tool and then just copy the code that works and paste it in the appropriate spot. w3schools.com is a great place to learn CSS by playing with it. Another thing I highly recommend is having a sandbox site that you can experiment on with various plugins, CSS, and such without worrying about breaking something. |
Thanks for your suggestions lmilesw - I'll check them out. In the mean time if anyone (Juggledad?) would like to give a specific reply, I'd be grateful!
Thanks heaps Cathy |
Your site is currently not accessible.
|
Yes - I found a post that suggested inserting this code in to function.php would get rid of the blog title.
<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>> <?php if ( is_front_page() ) { ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } ?> and I guess in a way, it did - it got rid of the entire website! :( Unfortunately, I can't log back in to delete the code. Hoping my host will rescue me with a backup soon. Gives evidence to your suggestion of having a sandbox.... Cheers Cathy |
just dowload a new copy of the theme, unzip it and upload a fressh copy of function.php
or use ftp to go to the theme folder, go to astahualpa and rename 'style.css' to xstyle.css' and the site should revert ot twenty eleven or twelve. Then you can rename style.css back and use the dashboard->appearance->editor to select atahualpa and edit the function.php file. |
Hi Juggledad
Thanks for your suggestions but I'm using Atahualpa V3.4.9 - the version available here is 3.7.11. Will a fresh copy of function.php from the newer version still work with my old version or will I stuff things up even more? Maybe the best option is to wait for my host to reinstall a back up from say, 28 Feb before I started messing things up? Please pardon my ignorance but once my current issue is fixed and I can log back in, do I have to wait for my host to update either Wordpress or Atahualpa for me or can I do it myself via ftp (cyberduck) after using phpMyAdmin to back up my database (as well as copying all files to my hard drive and a cloud service - just to be sure!)? Cheers Cathy |
Wooo hoo - I was able to fix the function.php all by myself so my site is back up :-)
|
you can get 3.4.9 from here: http://wordpress.bytesforall.com/201...-349-released/
you should be able to update from within WordPress. |
I've created a page that will list all the posts that have the category of Travel.
I'd like to delete the following from this page: Blog Title (Untie the Knots......) RSS Feed Search box Posted in Travel | Comments Off Move the header image up as far as possible, which will hopefully move the map up the page too Still working on getting either Flickr API plugin or Flickr Set Slideshows plugin to display photo sets from Flickr, but thats another story! When a visitor clicks on the Read More Link, the post itself is displayed (obviously!). How do I delete: Blog Title (Untie the Knots......) RSS Feed Search box Category and Comments are closed (at the bottom of the page) Add the next post link from the Travel category only to the bottom of the post? What happens when there are no more posts to display (ie I've returned from my holiday). Thanks for your help Cathy |
it looks like you are using a template and the template is not completely buildig the html page. That needs to be fixed before you can proceed.
|
Yes - I am using a template. How do I fix the template so that it completely builds the html page? Instructions suitable for a 4 year old (or links to something appropriate on the 'net) would be greatly appreciated.
Cheers Cathy |
use the themes index.php as a starting point.
sorry but 'Instructions suitable for a 4 year old' would take me hours to write up. |
Why are you using a page template instead of CSS to hide what you want. Any page templates you create will be wiped out with a theme upgrade. You could use something like the following in CSS Inserts to get rid of the items mentioned on your test page.
HTML Code:
.page-id-1565 #logoarea { |
Hi ~Larry
Why are you using a page template instead of CSS to hide what you want. Any page templates you create will be wiped out with a theme upgrade Because I didn't know any better - thanks for the tip :) I went to ATO > Various Content Items > HTML/CSS Inserts >CSS Inserts and pasted your code in before clicking on save. Nothing changed :confused: Cheers Cathy |
.page-id-1565 would need to be changed to the class for the page you are targeting.
|
Sorry to be a pain ~Larry but how do I find the class for the page I am targeting?
When I go to All Pages Click Edit Europe 2013 the Page Id shown in the address bar is 1565. When I go to All Posts Click Edit on Test Post for Europe Blog the post in the address bar is 1609 Obviously, this is not the same as the class? Cheers Cathy |
go to the page, use the browsers 'View Source' option, find the <body...> statement, look at the classes in that statement.
|
Thanks Juggledad
Closest thing I could find was <body class="page page-id-1565 page-template-default"> Tried both .page page-id-1565 #logoarea { display: none; } and .page page-id-1565 page-template-default #logoarea { display: none; } :confused: Cathy |
You might want to take a CSS Intermediate Tutorial so you under stand what classes and ID's are and how to address them.
Go thru the tutorial and then see if you can explain what your CSS selector is doing. |
@Cathy131
When you see HTML Code:
<body class="page page-id-1565 page-template-default"> HTML Code:
.page HTML Code:
.page-id-1565 HTML Code:
.page-template-default HTML Code:
.page.page-id-1565.page-template-default |
All times are GMT -6. The time now is 05:46 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.