Post

Web Log 03

Hey! I'm back with yet an another web log! Today we will talk about images and videos.

You might have noticed but I added home video and thumbnails to posts. It was not as easy as it might seem. Wordpress has very inconvenient path system, you need to follow specific path system for this system to work. That's why you got this function:

get_template_directory_uri()

Look's nice right? But if you look at my code you realize that this is quite tedious to make this work.

<video
  src="<?= get_template_directory_uri().'/assets/video/home-vid.mp4' ?>"
  poster="
   <?= get_template_directory_uri().'/assets/video/home-placeholder.webp' ?>
  "
  muted loop autoplay
></video>

This code is used on home page for the main video.

But that's enough of complaining now let's see what's now finished.

Progress:

Finished:

  • Some elements (buttons, calendar)

  • Single page rendering

  • Blog and blog search functions

Next Goal:

  • Dropdown menus in navbar

  • nicer gallery

  • nicer author pages.

This post is licensed under CC BY 4.0 by the author.

Trending Tags