Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter goatsontheroad

    (@goatsontheroad)

    Hello again,

    Just wondering if anyone can help me overcome this issue. Thanks!

    Thread Starter goatsontheroad

    (@goatsontheroad)

    Thanks again,

    The site was designed by someone else but i believe it uses Twenty Twelve as it’s structure.

    So the code would be pasted to the bottom of functions.php as follows:

    function category_goat shows_more_link( $more_link, $more_link_text ) {
    	if( in_category('goat shows') || is_category('goat shows') ) :
    	return str_replace( $more_link_text, 'Watch the Video', $more_link );
    	else :
    	return $more_link;
    	endif;
    }

    Note that i also changed the first line to: function category_goat shows_more_link

    Is that correct?

    Thread Starter goatsontheroad

    (@goatsontheroad)

    Hey guys,

    Really thank-you so much for all of the help. I’m going to need it in a bit more dummied down sorry I don’t dig into the code often.

    Alchymyth, am I to post the code you pasted above into the functions.php or the category.php or the archive.php? Also, the name of the category is Goat Shows and its ID is 38. Should i write it like this:

    function category_goat_shows_more_link( $more_link, $more_link_text ) {
    	if( in_category('goat_shows') || is_category('goat_shows') ) :
    	return str_replace( $more_link_text, 'Watch the Video', $more_link );
    	else :
    	return $more_link;
    	endif;
    }

    I tried that in the functions.php and it didn’t work but i think you meant for it to be in another file.

    Again thanks for all of the help.

    Thread Starter goatsontheroad

    (@goatsontheroad)

    Thanks for your reply

    I tried that but i want it to be there for all of the “read more” tags that appear on the category page and any that come in the future. Is it possible to do it in functions.php?

    T.McGuire, thanks for getting back to me.
    I had selected the database and then clicked search and pasted gad_oauth_token in, when i hit search it shows a blank area “show search criteria” with no results.
    Any Ideas?

    T.McGuire, Please help.
    I’ve wanted this plugin for a long time but still getting that error. Went into PHPmyAdmin and just hit search gad_oauth_token but nothing happens. Am I supposed to search in a certain place? Sorry, new to the PHP side of things. Any help would be greatly appreciated

    Open a new text document, add:

    <?php
    /*
    Template Name Posts: One column, no sidebars
    */
    ?>

    at the top of the blank document. Then go to editor and open the page template one column no sidebars, copy all the text in the .php file.
    paste that text below the 5 lines of code above. Save the file as ‘One Column, No Sidebars.php’. Then open go into your host file manager and upload this file to the child theme you are using. Make sure it’s name ends in ‘.php’. (rename it to ensure it does if needed)
    Then open up your editor again and make sure the new one column no sidebar php file shows up. If so then you’re ready to go.
    Open a single post and at the bottom, the feild for changing the template created by this plugin should include the new template you created.

    Note: My New template looks like this

    <?php
    /**
     * Template Name Posts: One column, no sidebars
     *
     * A page template with no sidebars
     *
     * @package WordPress
     * @subpackage Adventure_Journal
     */
    get_header();
    ?>
    <div class="content" id="col-1">
        <div id="col-main">
          <div id="main-content" <?php //ctx_aj_crinkled_paper(); ?>>
          <!-- BEGIN Main Content-->
    		 <?php
    		//Start the Loop
    		if (have_posts()) : while (have_posts()) : the_post(); ?>
    
                        <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
                        <?php echo sprintf('<h1 class="storytitle">%s</h1>',get_the_title());?>
    
                        <?php if(!is_admin_b)edit_post_link(__('Edit')); ?>
    
                        <div class="storycontent">
                            <?php the_content(__('(more...)')); ?>
                        </div>
    
                        <div class="feedback">
                            <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'adventurejournal' ), 'after' => '</div>' ) ); ?>
                            <?php comments_popup_link(__('Comments (0)'), __('Comments (1)'), __('Comments (%)')); ?>
                        </div>
    
                     </div>
                    <br/>
                    <?php comments_template(); // Get wp-comments.php template ?>
            <?php endwhile; else: ?>
            <p><?php _e('Sorry, no posts matched your criteria.','adventurejournal'); ?></p>
            <?php endif; ?>
    
            <?php posts_nav_link(' — ', __('&laquo; Newer Posts'), __('Older Posts &raquo;')); ?>
          <!-- END Main Content-->
    
          </div>
        </div>
    	<?php get_sidebar(); ?>
         <div class="clear"></div>
    </div>
    <?php get_footer(); ?>
    Thread Starter goatsontheroad

    (@goatsontheroad)

    You’re amazing! I’ve seen so many forums with people asking to do just this but nobody seemed to get a proper answer. This was so easy and works like a charm, i just had to change the aspect ratio of my pics (920X360) and set them to the featured image of the oldest post. Thank-you so much man this has pissed me off for a week.

    Thread Starter goatsontheroad

    (@goatsontheroad)

    okay David, i believe i successfully made the functions.php file. I looked in forums and the file says

    `<?php
    // Lets declare the name of our child theme
    $themename = “John Stamos Rules”;`

    I have no idea if this is right but i uploaded it to my child theme in /cpanel and it now appears on the right of the code text box when i go to Appearence>Editor in my child theme. Please ignore the theme name it came from extreme frustration in trying many themes.

    Am i at least on the right track?

    Thread Starter goatsontheroad

    (@goatsontheroad)

    Okay David, Thank-you very much for your reply. Yes i would be looking to change the Banner image on each category. I want to go “under the hood” rather than pay someone else. I need to do it myself to keep the creative juices flowing, and i NEED to learn this stuff. Anyway, i have already made a child theme. You said to make a functions.php file. I’ve searched some forums and cant figure out how to do this. I have my child theme activated but the only mention of functions.php is in my editor when i’m in my parent theme. So first things first, How do i make a new functions.php file and will it appear to the right of the editor in blue under “styles”? i would assume i need to go into /cpanel and into my themes folder and add a new file from notepad++. Should i copy the functions.php file from the parent theme? sorry… This may take time but please be patient, once i get the basics of adding code and styles i should be able to teach myself some more. I just need to get over this hump cuz as of now, code = greek to me.

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