Ganners
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How do I define post titles as images using Custom Fields?Ok a few things spring to mind, first off:
<h3 class="entry-title"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
should be:
<a href="<?php the_permalink() ?>" rel="bookmark"><h3 class="entry-title"><?php the_title(); ?></h3></a>
You could potentially save yourself a lot of hassle, since you’re using plain text you could use cufon to dynamically change the font for you.
Generally when this is done in html you would add something like:
text-indent:-5000;
to your h3 element style.Forum: Fixing WordPress
In reply to: Displaying Category / Slug Name$categories = get_the_category($post->ID); print $categories->category_nicename;
Is that what you’re after?
Forum: Fixing WordPress
In reply to: Need to get attachment ID by Image URLThanks for the link Kevin. These functions aren’t easy to find! Guess my googling isn’t up to scratch ??
Forum: Fixing WordPress
In reply to: Fatal ErrorAh okay, I think what you’ve done is replaced the wordpress shortcodes.php with your themes file.
So what i’d recommend is getting your shortcodes.php back to normal, so download wordpress again and just copy that file over it.
The file you pasted should be part of your theme and so not in wp-includes/ but in wp-content/your_theme/ which may have been where you went wrong (perhaps they’re both named shortcodes.php).
Forum: Fixing WordPress
In reply to: Fatal ErrorPut up your php file in https://pastebin.com/, It says that your function is missing, so perhaps the function name is wrong, you’re missing an include, or the function just got deleted somewhere in the process.
Also it’s generally not a good idea to edit the core wordpress files, they’ll get overwritten in updates etc. You can hook using the add_shortcode function in your theme functions for example.
Forum: Fixing WordPress
In reply to: Im New Need HelpDepends on lots and lots of things. First things first, a link to your website would help, what plugins are you using? Or themes? Where do you want the link to appear on the page and where would you like it to navigate to?
Forum: Fixing WordPress
In reply to: Showposts category pageHave you used “post_per_page” instead of “posts_per_page” ?
Forum: Fixing WordPress
In reply to: Change Defaul page to CategoriesSo do you want to link them to a random category? Or just a category of your choice?
You could set up a redirect from your index.php, or turn your index.php into a custom category page itself.
If you simply want to redirect, which does slow down site loading time, then put in
header("location: https://www.site.com/?cat=7");
Forum: Fixing WordPress
In reply to: Link Categories to Pages?Yeah sorry, that is true, If I am correct in suggesting you want the categories to appear in the horizontal bar then I suggest duplicating twenty ten, renaming the folder and rename the theme in styles.css.
Forum: Fixing WordPress
In reply to: Error when creating a pluginWhat if you copy this straight out:
<?php /* Plugin Name: Hello-World Plugin URI: https://yourdomain.com/ Description: A simple hello world wordpress plugin Version: 1.0 Author: Me Author URI: https://yourdomain.com License: GPL */ ?>
Does that work? Did you include <?php and ?> in it?
Forum: Fixing WordPress
In reply to: Link Categories to Pages?It sounds to me like maybe you want your categories to appear in your horizontal navigation bar. In which case I suggest you take a look at opening up your header.php where this is found and swapping wp_list_pages for wp_list_categories?
Forum: Fixing WordPress
In reply to: Can anyone please help with a few changes I need to make? ThanksYou’re very welcome, glad to help!
Forum: Fixing WordPress
In reply to: Add menu to/over header image.What is the link to your website now?
If you want to use it over, for example with the twenty 10 theme the header image is set as a background for a DIV element, so in your header.php you have to move the navigation stuff into that DIV and it will be over. There may be more that needs doing but I can’t tell until I see it.
Forum: Fixing WordPress
In reply to: Can anyone please help with a few changes I need to make? ThanksThat is bizarre that nothing has changed, i’ll look into it a bit more. But another solution would be to open up your style.css and find the following
#content .entry-title { color: #000; font-size: 21px; font-weight: bold; line-height: 1.3em; margin-bottom: 0; }
and add to it:
display: none;
You’ll find it on line 559.
That will hide it from view but it will still exist in your page source, which is actually good for SEO anyway so this way would be better.As for 3, I see you’ve got them moved to the right now. If you don’t want the wrap around effect then for each P element in the html view you can change each <p> to <p style=”width: 450px;”>. If you want text over the image (which I don’t recommend for these images) then you can try to position them absolute and give them a z-index of something below 0. Or better yet create a container div for each block of text and do something like
<div style="background: url:('image url here') center right no-repeat;">Text goes in here</div>
Again all of this can be done in the wordpress post or page wysiwyg editor.
Forum: Fixing WordPress
In reply to: Can anyone please help with a few changes I need to make? Thanks1. Open up page.php,remove the following lines of code:
<?php if ( is_front_page() ) { ?> <h2 class="entry-title"><?php the_title(); ?></h2> <?php } else { ?> <h1 class="entry-title"><?php the_title(); ?></h1> <?php } ?>
That will remove the entry title from the body.
2. Open up style.css, search for
#content, #content input, #content textarea { color: #333; font-size: 16px; line-height: 24px; }
it’s around line 459, change “color:#333” to your desired colour.
3. When you input your images in the wordpress editor, make them align right and they will go to the right of the page.