SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast MartyBoi's Avatar
    Join Date
    Dec 2011
    Location
    Saginaw MI
    Posts
    53
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Q&A About PHP And FUNCTION.PHP Modification Interest....

    I had downloaded the HTML5-Blank-WordPress-Theme, the starter theme from Todd Motto. And within that theme there are many references with the PHP Call Backs and within the FUNCTION.PHP.

    Example:
    Code:
    <?php html5blank_nav(); ?>
    , and an array of other Call Back Codes.

    My interest is to remove all references to html5blank throughout this theme.

    So with that being said, let me show a few more examples:

    And let me say, this example is driving me crazy, as follows --->

    Code:
    <?php html5wp_excerpt('html5wp_index'); // Build your custom callback length in functions.php ?>
    So here is the first Q&A to help solve this issue.

    I see the html5wp_excerpt('html5wp_index'), both the ' html5wp_excerpt ' and ('html5wp_index') refer to html5, in much respect although missing the blank within at the end of the text.
    So, this is what I would like to remove and replace with my domain abbreviation ' mySite '.

    Okay, so now I go to the FUNCTIONS.PHP and see the following --->

    Code:
          
    // Custom Excerpts
    function html5wp_index($length) // Create 20 Word Callback for Index page Excerpts, call using html5wp_excerpt('html5wp_index');
    {
        return 20;
    }
    
    // Create 40 Word Callback for Custom Post Excerpts, call using html5wp_excerpt('html5wp_custom_post');
    function html5wp_custom_post($length)
    {
        return 40;
    }
    
    // Create the Custom Excerpts callback
    function html5wp_excerpt($length_callback = '', $more_callback = '')
    {
        global $post;
        if (function_exists($length_callback)) {
            add_filter('excerpt_length', $length_callback);
        }
        if (function_exists($more_callback)) {
            add_filter('excerpt_more', $more_callback);
        }
        $output = get_the_excerpt();
        $output = apply_filters('wptexturize', $output);
        $output = apply_filters('convert_chars', $output);
        $output = '<p>' . $output . '</p>';
        echo $output;
    }
    
    So, with this being said what can I do to change this, all the above to achieve my goal?

    I hope I am not confusing anyone.

    Thank you....

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,072
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    Check whatever text editor you're using to see if it has an option to search for a string in multiple files and replace that string with a string of your choosing. If there is no option for that then look for an option to search multiple files for a string, then in each of them files identified do a search and replace
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •