Forum Replies Created

Viewing 15 replies - 1 through 15 (of 96 total)
  • 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.

    $categories = get_the_category($post->ID);
    print $categories->category_nicename;

    Is that what you’re after?

    Thread Starter Ganners

    (@ganners)

    Thanks 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 Error

    Ah 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 Error

    Put 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 Help

    Depends 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?

    Have you used “post_per_page” instead of “posts_per_page” ?

    So 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");

    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.

    What 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?

    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?

    You’re very welcome, glad to help!

    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.

    That 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.

    1. 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.

Viewing 15 replies - 1 through 15 (of 96 total)