WordPress.org

Support

Support » Themes and Templates » [Resolved] Page Template and Page Content

[Resolved] Page Template and Page Content

  • I’m trying to add video code to the page template and fill in the variables in the page content. I cant seem to get it to work.

    I want to display in this order

    page title
    video
    page content
    back button – share buttons

    I need a way to set the data for the video and back button link in the content. Things like file name, url and alt text.

    Some test code that doesn’t work

    In page template PHP file

    <?php echo ‘<img class=”button” src=”Video-Background.jpg” alt=”‘.$videoAlt.'”>’ ?>

    And in the page content

    <?php $videoAlt = “text alt text”; ?>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Page Template and Page Content’ is closed to new replies.