You can easily customize the look and layout of the individual slot game pages. The VegasHero game posts are WordPress custom post types and follow standard WP template hierarchy rules.

Before you get started, take note that we recommend you use a child theme so your changes remain intact after you carry out updates to the WordPress theme you run.

Follow these steps to create a custom single game template:

  1. locate the single.php post template in your parent theme folder and make a copy of it
  2. rename the copy of the file to “single-vegashero_games.php”
  3. copy this file over to your child theme folder
  4. now you can make modifications to your new template code that should take immediate effect on the look of your game pages

By default, the game iframe and the single game widget area is injected into the output where your standard single.php template calls the the_content(); function.

In a “single-vegashero_games.php” file you can customize this output. You can control where the game iframe and the single game widget area is added to your custom template using the following 2 functions:

Output Game iFrame:

\VegasHero\Functions::renderGameFrame();

Output Single Game Widget Area:

\VegasHero\Functions::renderGameWidget();

That’s all. Any questions? Get in touch with us via the support page.