Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End PHP Possibilities

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #40860
    matt_sanford
    Participant

    Ok so i have a head.php file that i am including to some of my pages that have the same heads. However i am at a loss on how to get page specific things like the title tag, facebook’s open graph, and other things required for SEO, inside the head without writing it all out. Is there a variable for that?

    Cheers

    #114652
    __
    Participant

    > Is there a variable for that?

    There’s a variable for anything,

    as long as you assign a variable to it : )

    for example

    $title = “My Page Title”;

    $template = <<< HTML



    $title

    HTML
    ;

    print $template;

    #114694
    matt_sanford
    Participant

    @andy_unleash @traq Thanks guys!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Back End’ is closed to new topics and replies.