The Bootstrap
[resolved] Changing "entry-meta" contents to personalize my blog (3 posts)

  1. Julian Hernandez
    Posted 3 years ago #

    Hi Konstantin,

    Before diving into my question, I want to congratulate you for having created this base theme. I'm now configuring my blog based on your theme, and it's awesome!

    I've been customizing my theme as a child of yours. However, I've hit a dead-end trying to modify the "entry-meta" contents (the 'Posted on xxx by xxx | Leave a reply' part). I want to take out the 'Leave a reply' part, but I can't seem to find a the way to do it.

    I found that "template-tags.php" has the function that makes it display. If I erase the part I want to delete in the parent php, it works (but not recommended). However, when I bring the php to my child folder and modify it, it just will not work.

    After fiddling with the thing for a almost a full day, this is my current set up. I copied functions.php (file 1) and "/inc/template-tags.php" (file 2) to the child folder. I deleted the part I don't want to see in file 2. However, I'm almost certain that the "get_template_directory" function in file 2 (child), ALWAYS calls "/inc/template-tags.php" from the parent folder!, and I believe this is the source of my headache.

    Any ideas on how I could fix this issue?


    Julian HR

  2. Konstantin Obenland
    Code Wizard
    Theme Author

    Posted 3 years ago #

    Howdy Julian,

    Thank you for your nice feedback, I appreciate it! :)

    All functions in /inc/template-tags.php are wrapped in function_exists() conditionals, so you can overwrite them in your child themes functions.php file, by declaring the function. You don't have to recreate the folder structure.


  3. Julian Hernandez
    Posted 3 years ago #

    haha, that did it!

    I didn't know I could rewrite the functions in template-tags.php on functions.php.

    Thank you much!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic