Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter rruffrruff

    (@rruffrruff)

    Figured it out. I needed to remove the code:

    <div class="visual-content">
    <img src="<?php bloginfo( 'template_directory' ); ?>/thumb.php?src=<?php if (is_multisite()){echo get_current_site(1)->path; echo str_replace(get_blog_option($blog_id,'fileupload_url'),get_blog_option($blog_id,'upload_path'),$image_url); }else{ echo $image_url;}?>&h=272&w=604&zc=1" alt="article_image_full" width="604" height="272" />
    </div><!-- /visual-content end -->

    Thanks for all the help!!!

    Thread Starter rruffrruff

    (@rruffrruff)

    Okay, everything’s coming together–the image is in place of the title. The last thing is preventing the featured image from also appearing above the content. When I delete its code the page won’t load. Something between div id=”content” and div class=”visual-content” needs to be changed or deleted.

    <div class="block-holder">
    					<?php if ( has_post_thumbnail() ) {
        the_post_thumbnail();
    } else {
        the_title();
    }?>
    					<div id="content">
    			<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
    						<h1 class="title-content"></h1>
    
    						<?php
                            //get the post thumbnail for this post
                            $image_id = get_post_thumbnail_id();
                            if ($image_id != ""){ ?>
    
                            <?php
                            $image_url = wp_get_attachment_image_src($image_id,'full');
                            $image_url = $image_url[0];
                            ?>
    
    						<div class="visual-content">
    Thread Starter rruffrruff

    (@rruffrruff)

    Oops…I forgot to include the page template code at the top.

    I’ll give it a go now…

    Thread Starter rruffrruff

    (@rruffrruff)

    That makes sense, except I only see the category option on posts not pages. But from your previous suggestion, I’ve created a new file called image_page.php so that my “default” page template won’t change and I can choose this new template for pages that need the featured image.

    I copied my page.php into image_page.php and then added the code for the featured image. But when I create a new page its not showing as an option to use under page templates??

    Again thank you so much for your help! I’ve made more progress in the last 20 minutes than I have in the last 5 hours! I’m not the greatest but learning quickly. ??

    Thread Starter rruffrruff

    (@rruffrruff)

    pearluvsapple – That sounds like a good idea and I’ll give it a try. So would I copy and paste my current page.php code into a new template then add the code you provided to it? If so, what line would I add this under?

    Thanks!

    Thread Starter rruffrruff

    (@rruffrruff)

    It worked!! Is there a way to keep the page title from appearing if a featured image is being used on the page? I plan to put the name of each page within the featured image graphic if one is being used.

    Also, when I delete the code to take away the original featured image (below title, above content) I get an error.

    Thanks so much for your help! I’ve been trying to solve this for about a week!

    Thread Starter rruffrruff

    (@rruffrruff)

    What I mean is its currently showing above the body text but I want it to show in place of the page title. In the sample page I’ve given that would be where the word “Children” is.

    Thread Starter rruffrruff

    (@rruffrruff)

    Here’s my header.php file:

    https://pastebin.com/bZBBHFxp

    Thread Starter rruffrruff

    (@rruffrruff)

    I’ve contacted them twice but they say they only provide support to make the theme work as they designed it, no help in making any changes.

    It seems I could just add code on the page.php to put the featured image in place of the title if there is one. I just don’t know how to do that…

    Thread Starter rruffrruff

    (@rruffrruff)

    Good idea. This seems simple enough but I can’t figure out exactly how to accomplish this. I’m still a newbie! I found this article that seems like a solution but it references the code of another theme that doesn’t match up to mine.

    Without editing any code, I can insert a featured image on a page that shows below the page title, I’m just not sure how to move it to display in place of the title.

    Can you point me in the right direction? Thanks!

    Here’s my CSS:

    [ 2,103 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin ]

    Thread Starter rruffrruff

    (@rruffrruff)

    I know that the sidebar is modified within the css. The problem is (and I’m no expert here) I can only change the sidebar font by changing the “body” font settings. However, this also changes the fonts on the homepage, which I don’t want to change.

    I’m trying to find a way to change just the sidebar font.

    Thanks.

    Where would I add the a img { border:0; }? In the style.css file?? Firefox adds a red border around my images. My site is here.

    Thread Starter rruffrruff

    (@rruffrruff)

    I was able to change the_content to the_excerpt and then add the Page Excerpt plugin so that my pages had a excerpt box like a posts. This resolved the problem.

    Thread Starter rruffrruff

    (@rruffrruff)

    Tried that, but nothing changes.

Viewing 14 replies - 1 through 14 (of 14 total)