Your Time:
Our Time:
← Back to discussions

Fixing the Title on a specific pages

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 4 replies, 2 voices, and was last updated 12 years, 11 months ago by Rastur.

  • 2013-10-20 at 10:18 pm
    Support Expired
    #292
    Rastur
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    I would need to change the title of a page.

    Example here: http://compedu.si/scheduled-courses/al32-korn-and-bash-shell-programming/

    What i need is to change the “Blog” into the actual page title, in this case “AL32 – Korn and Bash Shell Programming”.

    The Blog title is present only on pages that display events, all other pages work fine. I believe it has something to do with the Event Manager plugin in use. The guys who made the plugin said the following:

    Actually, this is a problem with your theme. You’ll need to find the page.php file in your theme and find the H1 that looks like this:

    <h1 class="page-title">Blog</h1>

    Then you need to replace “Blog” with;

    <?php the_title(); ?>

    If this doesn’t work for you, you’ll need to get in touch with the original theme developer to assist you with this.

    I have located the call in atp_generator.php on line 378. but messing with it affects all titles across the webpage.
    $out .= '<h1 class="page-title">'.$title.'</h1>';

    Can you provide some assistance?

    2013-10-21 at 7:06 am
    #295
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Line #309 in the atp-generator.php file replace that $title = …. with the below line


    $title = $page->post_title;

    Regards
    Maqk

    2013-10-21 at 1:10 pm
    Support Expired
    #305
    Rastur
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    Thanks, works like a charm.

    2013-10-22 at 3:32 pm
    #326
    Fem
    Keymaster
    • Topics: 2
    • Replies: 5215
    • Total posts: 5217
    • Post count: 6003

    Glad to hear that 🙂

    Kindly please leave the ratings to the theme if you haven’t given any so far.

    How to give ratings?
    A: Go to your themeforest account > downloads section and then beside the Hostme v2 theme Download button you see the stars. Click on the 5*’s to give the ratings 🙂

    Thanks in anticipation!

    2013-10-22 at 6:24 pm
    Support Expired
    #334
    Rastur
    Participant
    • Topics: 2
    • Replies: 2
    • Total posts: 4
    • Post count: 2

    Done and done!

You must be logged in to reply to this topic.