PokaTheme Documentation
Follow the instructions below to install and configure your PokaTheme!
PokaTheme Documentation
Follow the instructions below to install and configure your PokaTheme!
=============================================================
Installation
What you need
Every PokaTheme release is checked against current WordPress and against PHP 8.1, 8.2 and 8.3. The theme will run on older PHP, but nothing older than 8.1 is tested, so a site still on PHP 7.x is better moved before the upgrade than after it.
A few v5 features use WordPress APIs added in 6.5 – block bindings are the main one. On an older WordPress those features switch themselves off and the rest of the theme carries on as normal.
What is in the download
The zip you downloaded from your account contains everything you need:
- pokatheme.zip – the theme itself. This is the file you upload to WordPress.
- pokatheme_child.zip – the child theme. Install it as well if you intend to change templates or add PHP snippets; see “Making changes to your theme” below.
- A link to the documentation – this page, which is kept current with the theme.
Do not upload the outer zip. WordPress will reject it, because the theme it is looking for is one level down.
Installing it
- 1. In the WordPress admin, go to Appearance > Themes and press Add New, then Upload Theme.
- 2. Choose pokatheme.zip and press Install Now.
- 3. When the upload finishes, press Activate.
If the upload is rejected as too large
Hosts limit how big a file WordPress may receive, and the theme zip is larger than some of those limits. The message you see is about upload size, not about the theme. Three ways round it, in the order worth trying:
- Ask your host to raise upload_max_filesize and post_max_size. On most managed hosts this is a support ticket answered the same day, and it is the only one of the three that also fixes the next upload.
- Upload the zip over FTP or SFTP to wp-content/themes/ and unzip it there. You should end up with a folder called pokatheme containing style.css, not a folder containing another folder.
- Use your host’s file manager, which usually has its own unzip and does not go through WordPress at all.
Updating a site that is already live
Do not overwrite the theme folder on a live site while visitors are on it. Copying files into place takes a few seconds, and during those seconds the site is running half of one version and half of another: visitors get PHP errors, and a search engine crawling at that moment sees them too.
Use one of these instead:
- Appearance > Themes > Add New > Upload Theme, ticking “replace current with uploaded”. WordPress puts the site into maintenance mode for the length of the swap, which is exactly what you want.
- If you are copying files yourself, turn maintenance mode on first, copy, then turn it off.
Take a backup of files and database before any theme update. This is ordinary advice and it is not specific to PokaTheme, but the one time it matters is the time it was skipped.
Activation
Once the theme is installed, go to Appearance > Themes and press Activate on PokaTheme.
On first activation the theme does three things worth knowing about:
- It registers its post types, taxonomies and URL rules. If a review, a licence page or a country page answers 404 straight after activation, visit Settings > Permalinks and press Save once. That rewrites the rules and costs nothing.
- It suggests One Click Demo Import. You only need that plugin to import one of the five demos (see Demos and demo import). If you are not importing one, dismiss the notice.
- It checks whether a child theme is adding jQuery-dependent code, and turns the jQuery compatibility switch on for you if it finds any. See Customize > Theme Settings > General > Load jQuery.
Next, a demo, if you want one. The quickest way to a finished-looking site is to import one of the five demos into a fresh install. Demos and demo import below explains which demo to pick, what an import changes and what to do in the first hour after it.
Licence and updates
There is no licence key to enter, and WordPress does not show update notices for PokaTheme. Your purchase includes one year of new versions, downloads and support, and your account on pokatheme.com shows the date yours runs to. If you bought PokaTheme before 15 September 2026, that date is 30 September 2027.
When a new version comes out, download it from your purchase history and install it as described in “Updating a site that is already live” above. When the year is up, your sites keep working exactly as they are. Renewing gives you the versions released after that date; see What happens after the first year?
Making changes to your theme
There are three ways to change the theme, and which one is right depends on what you are changing.
- 1. CSS only – use Customize > Additional CSS. Nothing else is needed and nothing you do there is lost on an update.
- 2. Colours, fonts, layout switches – use the Customizer. Almost everything visual is a setting, and a setting survives updates where an edited file does not. The Customize chapter below lists every one of them.
- 3. Templates, hooks, PHP – use the child theme. Install pokatheme_child.zip the same way you installed the theme, and activate it instead of PokaTheme; the parent keeps doing everything it did. Then copy the template you want to change into the child theme and edit it there, or hook into one of the filters and actions listed in the Hooks/API chapter. Anything you edit inside the parent theme is overwritten the next time PokaTheme updates, without warning and without a copy.
Before copying a template, check whether a filter already does what you need. PokaTheme exposes its query arguments, its markup and its CSS classes as filters precisely so that most changes do not need a template override – and a filter keeps working across versions, while a copied template quietly stops inheriting improvements the day you copy it.
If all you are adding is a few hooks or filters, you do not need to maintain a child theme for them. A code snippets plugin such as Snipfire, made by the PokaTheme team, keeps each snippet separate, checks it before it runs and switches it off if it fails, so a typo cannot take the site down. Snippets live outside the theme, so they survive PokaTheme updates the same way a child theme does.
Demos and demo import
A demo is a complete example site built with PokaTheme: a homepage, ranked lists, reviews, bonuses, news, menus, widgets and settings. Five demos come with every PokaTheme licence, and you can import any of them into your own WordPress in a few minutes. See them all live on the demos page.
Every demo runs the same theme. What changes from one to the next is the content and the style variation it switches on. So a demo is a way to start a new site. You never need to import one just to change how an existing site looks.
The five demos
- PokaTheme, a casino review site. It has reviews with licence badges and dated verification, 17 bonuses, bonus tables, payment method guides, head-to-head comparisons and a dark mode switch in the header. The operators are real brands, but their ratings and details are demonstration values. View it live.
- Slots Dark, a dark slots site with 12 slot sites, 8 game providers, 10 slot reviews, 12 bonuses and news. Style: Slots Dark. View it live.
- Sports Betting, a sports betting news magazine with 12 bookmakers and 12 bonuses, each labelled with its bonus type. Its 32 stories use the magazine, image tile and headline layouts. Style: Sports Betting. View it live.
- Crypto Exchange, an exchange comparison and news site with 12 exchanges and wallets and 12 sign-up, cashback, staking and fee offers. It has 32 stories in 8 categories, and its risk wording is written for crypto rather than gambling. Style: Crypto Exchange. View it live.
- Poker Room, a poker site comparison with 12 poker sites, 12 rakeback, freeroll and tournament-ticket bonuses, and 32 stories. Style: Poker Room. View it live.
Slots Dark, Sports Betting, Crypto Exchange and Poker Room use invented brands. Every affiliate link on them goes to example.org, so a newly imported site sends visitors nowhere until you add your own links.
Which demo to start from
Pick the demo closest to the site you are building. Its homepage, menu and page types are the parts that take longest to build yourself.
- A casino review or comparison site: PokaTheme. It shows the most page types.
- A slots site: Slots Dark.
- A sportsbook site, or any site that leads with news: Sports Betting.
- A crypto site: Crypto Exchange.
- A poker site: Poker Room.
- Another market (esports, forex, VPN): import the demo whose layout you like best, then set Pattern library to your market under Customize > Visual Settings > Style.
The look and the content are separate choices. You can import Poker Room’s content and pick the Slots Dark style, or keep a demo’s content and change its style whenever you like.
Before you import
- Import into a fresh WordPress or a staging copy. The import adds its content next to whatever is already on the site, and it changes site-wide settings (listed under “What an import changes” below). On a site that already has content, you end up with two of everything.
- Take a backup first. One Click Demo Import has no undo. A backup is the only way back to how the site was.
- Activate PokaTheme first, or the PokaTheme child theme.
- Make sure the site can reach demos.pokatheme.com. The demo files and images are not inside the theme zip. They are downloaded from there during the import, so a server that blocks outgoing connections cannot import a demo.
- Leave yourself a few minutes. The PokaTheme demo has the most images and takes the longest. The other four are quicker. Expect longer on a slow shared host.
Importing a demo, step by step
- 1. Install and activate the free One Click Demo Import plugin. After you activate the theme, PokaTheme also shows a notice offering to install it for you.
- 2. Go to Appearance > PokaTheme Demos. There is a card for each of the five demos.
- 3. To look at a demo again before you choose, press Preview Demo on its card. The live demo opens in a new tab.
- 4. Press Import Demo on the demo you want. The next screen is Before We Import Your Demo. For Slots Dark, Sports Betting, Crypto Exchange and Poker Room, it shows a note about what the demo switches on. The screen may also list up to three plugins that One Click Demo Import recommends, such as WPForms, All in One SEO and MonsterInsights. PokaTheme does not need any of them and they start unticked, so leave them unticked unless you want them.
- 5. Press Continue & Import. Keep the tab open while the screen says Importing…: closing the tab or leaving the page stops the import part-way.
- 6. When the screen says Import Complete!, visit your site. The demo’s homepage is now your homepage.
What an import brings
- The demo’s pages, posts, reviews, bonuses, FAQs and payment method pages, with their images.
- Every taxonomy term the demo uses: software providers, deposit and withdrawal methods, languages, currencies, devices, operator groups, bonus types and licences. Each licence comes with its badge image and the link to the regulator’s own register.
- The demo’s menus and widgets.
Two things are converted as they are imported, because a straight copy would break them:
- Links. Every link that pointed at the demo site is rewritten to point at your site, including menu items and tracking links. Otherwise your new site would send its visitors to our demo.
- References between content. Every block and shortcode that names a review, a bonus or a term by its database ID is changed to use your site’s IDs, so the editor’s dropdowns show the right selection. Each bonus keeps pointing at its own operator, and each review at its alternatives.
What an import changes
These settings are replaced with the demo’s. This is why a demo belongs on a fresh site.
- Site title and tagline (Settings > General). For example, Crypto Exchange sets the title to “PokaCrypto”.
- Homepage, posts page and posts per page (Settings > Reading).
- Permalinks are set to “Post name” (Settings > Permalinks).
- Menus and widgets. The demo’s main menu goes into the Primary menu location. The main sidebar and the top footer widget area are emptied, then filled with the demo’s widgets.
- Customizer settings the demo uses. These include the style variation and pattern library, the header style and the compliance preset. The preset is United Kingdom on the PokaTheme demo and Generic affiliate site on the other four. Dark mode is switched on by the PokaTheme demo and off by the other four.
- Logo and site icon. Slots Dark, Sports Betting, Crypto Exchange and Poker Room set their own. The PokaTheme demo leaves yours alone.
- Trust pages. The “How we rate” and “Responsible gambling” pages are chosen for you under Customize > Theme Settings > General.
- WordPress’s “Hello world!” post is moved to the trash, as long as nobody has edited it, so it does not show at the top of the demo’s news.
What an import does not bring
- Slot games. The PokaTheme demo’s games come from the Slots Launch plugin, using our API key. Its game pages are imported, but the games only appear once you install Slots Launch with your own key; until then those pages show the plugin’s shortcodes as plain text. See the Slots Launch chapter. None of the other four demos uses Slots Launch.
- Your affiliate links, ratings and brand. Those are the first things to replace. See the next section.
- Full-site-editing templates and global styles. PokaTheme is a classic theme with block support. It does not use those, so importing them would only add records nothing reads.
The first hour after an import
A demo is filled with demonstration values. It is a starting point, not something to publish as it stands. Work through this list, most important first:
- 1. Replace the affiliate links. Every operator in a demo points at a placeholder, so until you change them your site earns nothing from clicks. Go to Reviews > the review > the affiliate link field.
- 2. Replace the brands and ratings. On Slots Dark, Sports Betting, Crypto Exchange and Poker Room, the brands are invented: edit them into real operators, or delete them and add your own. On the PokaTheme demo, the ratings and verification notes on real brands are demonstration values. They are not our opinion of those brands, and they should not become yours by default.
- 3. Set your site title, tagline and logo. Go to Settings > General and Customize > Site Identity. If you offer dark mode, also set a logo for it.
- 4. Pick the compliance preset for your market. Go to Customize > Theme Settings > Compliance. The demo’s preset is a placeholder. This setting decides which of these the theme adds for you: the age statement, affiliate disclosure, paid-link marking, responsible-gambling link, licence display, and terms beside each offer.
- 5. Choose a style variation and pattern library. Go to Customize > Visual Settings > Style. Both can be changed back, and neither overwrites a colour you chose yourself.
- 6. Decide about dark mode. Go to Customize > Theme Settings > General. There you choose whether to offer it, what a first-time visitor sees and which logo the dark version uses.
- 7. Replace the images and stories. Treat every demo image as a placeholder, and replace photos and artwork with your own before you publish. The news stories on the four newer demos are about invented brands and events.
- 8. Set the footer copyright line and your social links. Go to Customize > Theme Settings > Footer and > General.
- 9. Write your trust pages. The “How we rate” and responsible gambling pages are yours to write. The demo gives you a structure, not your methodology.
Using a demo’s look without importing it
If you already have a site, you do not need to import anything to get a demo’s look:
- The design: go to Customize > Visual Settings > Style > Style variation and pick Slots Dark, Sports Betting, Crypto Exchange or Poker Room. Your own content takes on that look, including the style’s skin, and nothing on your site is replaced. You can switch back at any time.
- The sections: insert the block patterns for your market from the block inserter. See the Block patterns chapter.
A demo’s homepage is content, not a pattern. To get that exact homepage, import the demo into a fresh site and copy what you need from there.
Importing another demo, or starting over
Do not import a second demo on top of the first. You would get two homepages, two sets of menus and both demos’ operators on one site. Importing the same demo twice can also duplicate its menu items.
One Click Demo Import has no “remove demo” button. To switch to a different demo, restore the backup you took before importing, or start again on a fresh WordPress, and then import the demo you want. If you only want a different look, change the style variation instead (see above).
Theme updates and demo content
- Updating PokaTheme never changes content you imported. Once imported, the pages, reviews and settings are yours, and an update leaves them as they are.
- Improvements reach you through the theme, as blocks, styles and skins, not by importing again.
- New demos appear after you update. When a new version adds a demo, it shows up under Appearance > PokaTheme Demos.
- If you imported the PokaTheme demo with version 5.0.0, its bonuses may name the wrong operator. Open Bonuses, edit each bonus and choose its operator again. From 5.0.1 on, imports get this right.
If the import stops or something is missing
- “Import Failed” or “Whoops, there was a problem importing your content.” Usually the server ran out of time or memory, or could not download from demos.pokatheme.com. Ask your host to raise PHP’s memory_limit and max_execution_time and to allow outgoing connections. Then restore your backup and import again.
- “Your import completed, but some things may not have imported properly.” The content is in, but something was skipped, usually images. One Click Demo Import saves a log file in the Media Library, titled “One Click Demo Import – log_file_” followed by the date. Open it to see what was skipped.
- Reviews, bonuses or licence pages return 404. Go to Settings > Permalinks and press Save once.
- The homepage shows a list of posts. Go to Settings > Reading, choose “A static page” and select the demo’s homepage.
- There is no menu in the header. Go to Appearance > Menus, select the demo’s menu, tick Primary menu under Menu Settings and save.
- The import screen cannot fetch the demo files. Use Switch to Manual Import on the PokaTheme Demos screen, and upload the demo’s three files yourself: xml/pokatheme.xml (content), widgets/pokatheme.json (widgets) and customizer/pokatheme.dat (Customizer). Download them from https://demos.pokatheme.com/demo-content/ plus the demo’s folder: pokaTheme_v5 (PokaTheme), pokaTheme_v5_slots, pokaTheme_v5_sports, pokaTheme_v5_crypto or pokaTheme_v5_poker. The content file still downloads its images from demos.pokatheme.com.
Let us import it for you
Every PokaTheme licence includes a free installation with demo content. After your purchase, contact us with a temporary administrator login for your site, and tell us which demo and which market you want. We install the theme and the child theme, import the demo, set the compliance preset and check that every page renders. It is usually done within a working day. How the free setup works.
Upgrading from PokaTheme v4 to PokaTheme v5
v5 is an upgrade in place, not a rebuild. Your reviews, categories, menus, Customizer settings and content stay where they are, and nothing in v4 is deleted or renamed by the upgrade.
Before you upgrade
- Take a backup of files and database, and know how to restore it.
- Upgrade on a staging copy first if you have one. If you do not, upgrade at a quiet hour.
- Follow “Updating a site that is already live” above. Overwriting the theme folder in place, on a site with visitors on it, serves errors while the copy runs.
What changes on the day
- Your CSS is rebuilt from the same settings. Every colour, font and radius in v5 comes from the same Customizer values as in v4. A site that never opened the Customizer gets the theme’s defaults, which are the same defaults v4 printed.
- Assets are versioned by the theme version, so browsers and caching plugins fetch the new CSS and JavaScript rather than serving last week’s. If you run a caching or optimisation plugin, clear its cache after the upgrade anyway.
- jQuery is no longer loaded by default. The front end does not use it. If a child theme or a snippet of yours does, the theme detects that on the first load after the upgrade and turns the compatibility switch back on; you can also set it yourself in Customize > Theme Settings > General > Load jQuery. If something interactive stops working after an upgrade, this is the first switch to check.
- Old shortcodes and block names keep working for the whole of 5.x. Where something was renamed, the old name still resolves and logs a deprecation notice – but only when WP_DEBUG is on, so nothing appears on a live site.
The migration tool
v4 kept an operator’s bonus as a line of text on the review. v5 has a real Bonus – with a code, wagering terms, an expiry date, a type and its own tracking link – which is what makes bonus archives, bonus tables and expiry warnings possible at all.
The migration tool turns the one into the other, and it is deliberately timid about it. Go to Tools > PokaTheme v5.
- Nothing happens until you press a button. The page opens on a report: how many reviews carry v4 bonus text, and what each one would become.
- It works in batches of 25 by default, so a shared host finishes each run rather than timing out halfway.
- Every bonus it creates is a draft. Somebody looks at them before anything appears on the site.
- It deletes nothing. The v4 bonus text stays exactly where it was, which is why the site looks identical the moment the migration finishes, and why running it twice is safe – the second run finds nothing left to do.
There is no deadline on this. A site can stay on the v4 bonus text indefinitely; the tool is there for when you want the bonus features, not because the upgrade needs it.
What to check afterwards
- Load the front page, a review, a category and one of your own landing pages, logged out.
- Check anything your child theme draws.
- Clear the cache of whatever plugin or CDN sits in front of the site.
- If you use a page builder on some pages, open one of those pages.
Three real v4 sites were upgraded as a rehearsal for this release. Every page answered normally, no computed colour changed on any of them, and every bonus migrated cleanly. The one thing that went wrong was copying files onto a live site while it was serving – which is why that warning is above, twice.
Migrating PokaTheme v3 to PokaTheme v4
Our new version of PokaTheme (v4) uses Gutenberg blocks. Gutenberg is the new generation of Editors on WordPress.It is lightweight,responsive and more user-friendly.Classic Editor support will end soon by WordPress in the near future.That said migration from our previous versions of PokaTheme to new one is not possible with an automatic way.You can migrate your old theme manually.
You can Find more information on this link
Deprecated and redirected Shortcodes from v3
These shortcodes no longer support at the new Poka Theme:
‘upsdowns’, ‘poka_registration’, ‘two-cols-first’,
‘two-cols-last’, ‘three-cols-first’, ‘three-cols-middle’, ‘three-cols-last’, ‘four-cols-first’, ‘four-cols-middle’, ‘four-cols-last’,
‘single_affiliate_freespins’, ‘affiliate_link’, ‘poka_slider’, ‘screenshots_carousel’, ‘poka_slider_carousel’
Old shortcodes that redirects to the new Poka theme:
‘table_list’ => ‘affiliates_table’, ‘table_list_v2’ => ‘affiliates_table’, ‘latest_news’ => ‘posts_list’, ‘latest_news_sidebar’ => ‘posts_list’, ‘news_boxes’ => ‘posts_list’, ‘single_affiliate’ => ‘affiliates_single’, ‘single_affiliate_xl’ => ‘affiliates_single’, ‘affiliates_carousel’ => ‘carousel’,
‘search_affiliates_ajax’ => ‘affiliates_search’
Customize
To get to the WordPress Customize, navigate to Appearance / Customize from your WordPress dashboard. You will be taken directly to the Customize interface, with your theme preview on the right, and the Customize menu on the left
Customize in PokaTheme gives you the opportunity
- to define the basic information and functionalities of the site through the available options in the subcategories of
Theme Settings, Translations & Site Identity
- to edit the layout of the site through the available options in the subcategories of Visual Settings
Customize > Theme Settings > General
Google analytics code
If you want visitor statistics in this field you enter the Google analytics code. You can get yours from : http://www.google.com/analytics/
Google Tag Manager Code
Google Tag Manager lets you configure and deploy tags from Google products and third parties. You can get yours from:https://developers.google.com/tag-platform/tag-manager/web
Youtube Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Facebook Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Twitter Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Instagram Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Linkedin Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Skype Link
The link to your social account that is going to appear in the header and footer. If you leave it empty then the icon is going to hide.
Affiliate redirect link folder
All the Reviews that contain an affiliate link use a specific URL structure to hide the affiliate link to the visitor. In this field you can set the URL structure for your affiliate links.
For example : www.yoursite.com/ go /affiliate_name.
Default value : go
Show related articles in posts page
If you want the related posts’ section to appear at the bottom of your posts’ single page check this option. (Related articles are considered articles in the same category as the current article)
Allow users to comment in posts
If you want users to comment in your posts check this option. (It is recommended for users to be logged in to comment.)
Allow users to comment in reviews
If you want comments in your reviews check this option. (It is recommended for users to be logged in to comment.)
Enable Geolocation
Check this field if you want to enable the Poka Geolocation. For further information about the Poka Geolocation see the Poka Geolocation section in the documentation.
Enable FAQs
Check this field if you want to enable FAQs Custom Post Type. By activating this functionality you have the ability to use the FAQs that you have created in any part of the site, using the corresponding Gutenberg Block which is called PokaTheme FAQ.
Enable jQuery Migrate
If you experience any issues with plugins that haven’t been updated for a long time and use older version jQuery you can enable this option and jQuery migrate will be added to your site. If everything works as expected you should leave it unchecked because jQuery migrate is adding unnecessary load to your site.
Open social links in new tab
When this is on, the social icons in the header and footer open in a new tab.
Serve images as WebP
Converts the resized copies WordPress makes from new JPEG uploads, and serves those to browsers that accept WebP. The original file you uploaded is kept exactly as it is, and images already in your media library are not touched – run wp media regenerate if you want those converted too. No plugin is involved.
Enable Render Blocking
Adds the defer attribute to script tags, so scripts stop holding up the first paint. WordPress’s own editor and block scripts are excluded, because deferring those breaks the admin.
The label reads backwards, and it is kept as it is because changing it would flip the meaning on every site that already set it: turning this on is what removes render blocking. Leave it on unless a plugin’s script misbehaves, in which case turn it off, confirm that was the cause, and tell the plugin’s author.
Enable Auto Meta Description (Disable if you use some SEO plugin)
Writes a meta description for pages that do not have one, from the excerpt or the opening text. Every SEO plugin does this too, and two of them fighting produces two meta descriptions in the same page. If you run Yoast, Rank Math, SEOPress or similar, turn this off.
Load jQuery
PokaTheme 5 does not use jQuery on the front end, and does not load it. Turn this on if a child theme, a snippet or a plugin on this site does.
On the first load after an upgrade the theme looks through your child theme for jQuery-dependent code and turns this on for you if it finds any, then tells you in the dashboard that it did. If something interactive on your site stops working after the upgrade to v5, this is the first switch to check.
How we rate page
Choose the page that explains your rating methodology. The verification line on every review links to it. Insert the How we rate pattern into a page to start one.
Responsible gambling page
Choose the page that carries your responsible-gambling information. Every page links to it from the footer. Insert the Responsible gambling pattern into a page to start one.
Offer a dark mode
Puts a light/dark switch in the header. It is off unless you turn it on, so a site that updates to v5 does not suddenly grow one.
Default appearance
What a visitor sees before they touch the switch: whatever their device prefers, light, or dark. A visitor’s own choice is remembered in their browser and always wins over this.
Logo for dark mode
Optional. A dark-ink logo disappears against a dark page; upload a light version here and it is swapped in whenever the page is dark. If you leave this empty your usual logo is used in both.
Customize > Theme Settings > Banners
Banner fullwidth top
This is the banner available space between the main content and the site header. The available width in desktop mode is 1180px and you can place your banner snippet or an image with a link.
Banner Snippet Example:
<img src="http://localhost/pokatheme-v4/wp-content/uploads/2022/01/Mask-Group-28.jpg">
Image With Link Example:
<a href="pokatheme.com"><img src="http://localhost/pokatheme-v4/wp-content/uploads/2022/01/Mask-Group-28.jpg"></a>
* You can hide the banner at post pages / review pages / posts categories / reviews categories, selecting the appropriate rules in the checkboxes.
Banner fullwidth bottom
This is the banner available space after the main content and before the site footer area. The available width in desktop mode is 1180px and you can place your banner snippet or an image with a link.
Banner Snippet Example:
<img src="http://localhost/pokatheme-v4/wp-content/uploads/2022/01/Mask-Group-28.jpg" />
Image With Link Example:
<a href="pokatheme.com"><img src="http://localhost/pokatheme-v4/wp-content/uploads/2022/01/Mask-Group-28.jpg"></a>
* You can hide the banner at post pages / review pages / posts categories / reviews categories, selecting the appropriate rules in the checkboxes.
Hiding a banner on part of the site
Each banner has four switches beside it, and each one takes that banner off one kind of page while leaving it everywhere else.
Hide banner fullwidth top at post pages : single posts.
Hide banner fullwidth top at review pages : single reviews.
Hide banner fullwidth top at posts categories : post category archives.
Hide banner fullwidth top at reviews categories : review category and taxonomy archives.
Hide banner fullwidth bottom at post pages : single posts.
Hide banner fullwidth bottom at review pages : single reviews.
Hide banner fullwidth bottom at posts categories : post category archives.
Hide banner fullwidth bottom at reviews categories : review category and taxonomy archives.
A banner with no content in it shows nothing whatever these switches say, so they are only worth setting once the banner itself has something in it.
Customize > Theme Settings > Sponsored Review
You can add a sponsored Review Modal.
Display Sponsored Review Modal
Gives you the ability to enable or disable this functionality.
Select Review
Select a review from the dropdown list.
Display Options
Select ‘Once’ if you want to display the modal once, or ‘Always’ if you want to always display the modal.
Sponsored Title
Give a custom title to the modal.
Customize > Theme Settings > Terms and Conditions
You can handle the Terms & Conditions functionality from here.
Enable “Terms and Conditions” functionality
You can switch terms and conditions on/off from here.
Enable “Terms and Conditions” tooltip
If you switch this on, the terms and conditions text will be displayed inside a tooltip which is triggered when the user hovers the text under any affiliate button, otherwise it will appear as regular text under all affiliates sections.
Text under each affiliate button
Here you can enter the text that appears under all affiliate buttons and triggers the Terms & Conditions popup. Note: The above will apply only to reviews that you have entered Terms & Conditions text.
Customize > Theme Settings > Review Labels and Buttons
Two switches controlling the “Review” furniture that appears beside an operator in listings and tables.
Enable “Review” label
Shows the Review label on the operator’s row.
Enable “Review” button
Shows the Review button, which links to the operator’s own review page. Turning it off leaves only the affiliate button, which is worth thinking about twice: a listing with nothing but tracking links gives a visitor nowhere to read before they click.
Customize > Theme Settings > Compliance
This section decides which pieces of compliance furniture the theme adds for you: the age statement, the affiliate disclosure, the marking of paid links, the responsible-gambling link, the licence on a review, and the editor’s warning when a bonus value is published without its terms.
This is tooling, not advice. These switches render and check the theme’s own furniture. Whether what they render is what your market requires is for whoever signs off your compliance to say, and nothing here is a substitute for that.
Market preset
Fills in the switches below and a starting age. Six presets ship: None, which adds nothing, Generic affiliate site, United Kingdom, Malta, Ontario and Sweden.
A preset that leaves a switch out is not saying your market does not want it – it is saying this preset does not turn it on for you. Anything you set yourself wins over the preset.
Minimum age
Leave it empty to use the preset’s. It is 18 in most markets, 19 in Ontario and 21 in several US states, which is exactly why it is a field rather than a number baked into a template. Check yours.
The six switches
Each has three positions: Whatever the preset says, On, and Off.
Age statement : prints the minimum age in the footer of every page.
Affiliate disclosure : prints a line saying the site is paid for the links it carries.
Mark paid links : adds a visible marker and rel=”sponsored” to every tracking link.
Responsible gambling link : links your responsible-gambling page from the footer of every page.
Licence on the review : shows an operator’s licence, linked to the regulator’s own register.
Terms beside the offer : warns in the editor when a bonus value is published with no terms next to it. This one changes nothing a visitor sees; it is a check on the way in.
Disclosure wording
Leave it empty for the theme’s own wording. Whatever you write here has to be true of this site.
Where to check what it is doing
Tools > PokaTheme compliance lists what the current profile requires, what is switched on, and what is missing.
Customize > Theme Settings > Footer
Footer form area (left)
The content you want to display in the left side of the footer area. You can enter anything you wish, for example the social links’ shortcode.
Footer form area (right)
The content you want to display in the right side of the footer area. You can enter anything you wish, for example the subscription form’s shortcode.
Footer copyright area
In this field you can enter the copyright text. This text will be displayed at the bottom of the website.
Footer Images
In this section you can add as many photos as you want with the Add new field button, so that they appear in the footer. There are two ways to do this:
Link : In this field you can add an external link for the photo.
Image field : In this field you can enter the url of the photo you want to appear.
Upload Image : Upload an image from your media.
Footer images area
A repeating list of images for the strip above the copyright line – payment logos, regulator badges, age marks, award seals. Each row takes an image and, optionally, a link and a title.
Two things worth knowing. The rows are stored together as one setting, so if you are moving settings between sites by hand this is the one that does not look like the others. And a badge that claims a licence or a certification should link to the body that issued it; an unlinked badge is a picture of a logo.
Customize > Visual Settings > General
Header style
You can select how your header should look by selecting one of the two available header styles.
Hide breadcrumbs
Check to hide breadcrumbs.
Sticky sidebar
Check to enable sticky header functionality.
Override reviews breadcrumb link
When you are in a review page and you have enabled breadcrumbs the parent link is the archives page of reviews. If you want to override this link with your own page you can select it in this dropdown.
Sidebar position (left/right)
Choose the sidebar’s position left or right.
Sticky sidebar
Check to enable sticky sidebar functionality.
Theme elements border radius
Set the theme elements’ border radius. Default value 8.
Customize > Visual Settings > Colors
Header background color
The header’s background color.
Header secondary background color
The header’s secondary background color, for header styles that a secondary color exists.
Header text color
The header’s text color.
Header text color hover
The header’s text color on hover and when a header element is active.
Site background color
The background color of your site.
Main color
The main color of your site.
Secondary color
The secondary color of your site.
Text color
The text’s color.
Footer background color
The footer’s background color.
Footer text color
The footer’s text color.
Boxes background color
The boxes’ background color.
Boxes secondary background color
The boxes’ secondary background color.
Boxes text color
The boxes’ text color.
FAQ Question Background Color
It adds color to the background of the FAQ question. It refers to the PokaTheme FAQ block.
FAQ Answer Background Color
It adds color to the background of the FAQ answer. It refers to the PokaTheme FAQ block.
FAQ Question Text Color
It adds color to the FAQ Question text. It refers to the PokaTheme FAQ block.
FAQ Answer Text Color
It adds color to the FAQ Answer text. It refers to the PokaTheme FAQ block.
FAQ Border Color
It adds color to the FAQ border. It refers to the PokaTheme FAQ block.
FAQ Icon Color
It adds color to the FAQ icon. It refers to the PokaTheme FAQ block.
Customize > Visual Settings > Buttons
Primary button color
The primary buttons’ color.
Primary button text color
The primary buttons’ text color.
Secondary button color
The secondary buttons’ color.
Secondary button text color
The secondary buttons’ text color.
Border radius (in pixels)
The secondary buttons’ text color.
Font weight
Select the buttons’ font weight.
Buttons text uppercase
Check this field to convert buttons’ text to uppercase letters.
Customize > Visual Settings > Fonts
Base font size (in pixels)
The base fonts size of your site. If you want to make your fonts bigger/smaller because of another font family this is the setting you should tweak. The default value is 16.
Main Font Family
Select the main font family.
Headings Font Family
Select headings’ font family.
Headings Font Weight
Select headings’ font weight.
Customize > Visual Settings > Reviews
Review style
Select one of the three available styles for the reviews pages. You can override this option for a specific review using the Affiliates Fields’ Review Template Style.
Taxonomy Review style
Select one of the eight available styles for the reviews’ taxonomies.
Taxonomy hide sidebar
Check this field to hide the sidebar in the reviews’ single page.
Hide author box
Check this field to hide the author box in the reviews’ single page.
Hide related reviews
Check this field to hide related reviews in the reviews’ single page.
Display bottom fixed review box
Pins a compact version of the review box to the bottom of the screen as the visitor scrolls, so the offer and its button stay reachable on a long review. Available only with Review style 1; with any other review style the switch has no effect.
Customize > Visual Settings > Posts
Display sidebar on single
Check this field to display sidebar on posts’ single page.
Display sidebar on Category
Check this field to display the sidebar on posts’ category page .
Category Style
You can select one of the two available styles for the posts’ category page.
Category Description Length
The maximum number of words for each description.
Category Show Featured Image
Select “No” to hide posts’ featured image. Default: “Yes” This option is available only on Category Style 1
Category Description Use Excerpt
Select “Yes” if you want to use excerpt instead of truncated content. Default: “No”
Category Show Author
Select “No” if you want to hide the author of the post on the category page. Default “Yes”
Category Show Post Meta
Select “No” if you want to hide the posts’ meta information (date, views, etc ..) on the category page. Default “Yes”
Category Grid
You can select one of the two available options for the category’s page grid columns.
Default “2 Columns”
This option is available only on Category Style 1
Category Block Layout
You can select one of the two available options for the category’s block layout. Default “Vertical”
This option is available only on 1 Column Category Grid.
Customize > Visual Settings > Preloader
A screen shown while the page loads. It is off by default, and it is worth being honest about the trade: a preloader does not make a page faster, it makes the wait look deliberate. On a fast site it is a frame nobody needed.
Show Preloader?
Turns it on.
Preloader Image
An image or animated GIF shown in the middle of the preloader. Give it real dimensions – a very large file here is loaded before the thing it is covering for.
Preloader Background Color
The colour behind it. Default is #ffffff. Matching it to your site background is what stops the page flashing when the preloader goes.
Preloader Text
Optional text below the image.
Preloader Text Color
The colour of that text. Default is #ffffff, which is invisible on a white background, so set this if you set the text.
Customize > Visual Settings > Style
Two settings that together decide what a site looks like out of the box and what the editor offers.
Style variation
A complete set of colours, fonts and radii, chosen in one click. Eight ship with PokaTheme 5.0.1: Sportsbook, Crypto, Poker and Slots, and the four behind the demos, Slots Dark, Sports Betting, Crypto Exchange and Poker Room. Each decides all 33 settings the theme maps, and each has been checked so that the eight text-and-background pairs a visitor actually has to read meet WCAG AA contrast.
A variation is a layer of defaults, not a set of writes. Picking one changes nothing in your database except which one is picked, which has two consequences worth knowing:
- Any colour you chose yourself keeps winning. A variation only decides the settings you have not touched, so it never overwrites your work.
- Trying one on costs nothing. Switch back and you are exactly where you were.
If you want a variation’s colour to become yours – so you can then edit it – set it in Visual Settings > Colors; from then on that value is yours and the variation stops deciding it.
Style skins
Slots Dark, Sports Betting, Crypto Exchange and Poker Room also carry a skin: one stylesheet for the shapes a set of colours cannot describe – section headings, buttons, cards, the header bar. It loads only while that style is picked, and it never overrides a colour you set yourself. Pick another style and the skin goes with it.
The page’s body carries the class poka-style-<slug> for the active style (for example poka-style-poker-room), so a child theme can add a rule for one style only.
Pattern library
Which sections the block inserter offers you. Eight markets: Casino, Sportsbook, Crypto, Poker, Slots, Esports, Forex and VPN.
Pick yours and the patterns written for other markets stop appearing in the inserter. It changes nothing that is already on the site – patterns are inserted, not linked, so a section you have already placed is your content and stays exactly as it is.
Leaving this unset offers the whole library, which is the right thing until you have decided.
Customize > Translations
Review button text
You can change the text in all the “Review” buttons in the site.
Play now button text
You can change the text in all the “Play now” buttons on the site.
Review post type slug
With this field you can easily change the “Review” post type slug in the URL of your reviews. All PokaTheme v4 sites display their reviews under the URL structure domain/review/review-title, now with this field you can add your own custom review slug. Please don’t use white spaces and use only underscores.After saving the options please refresh your permalinks by clicking “Save” to Settings/Permalinks.
For example : domain/casino_paris/review-title
Notice
Poka theme uses WordPress official translations management system using PO/MO files and if you want to completely translate your site to a different language this is the way to go.
By using the options in Translations settings overrides PO/MO files, if you want to use PO/MO files just leave the buttons fields in translation settings empty.
More information about creating/editing language packs you can find here : https://pokatheme.com/topic/how-to-createedit-language-packs/
Customize > Site Identity
Logo
Set the logo of your site.
Site Title
Define the site’s title.
Tag Line
Define the site’s tagline. Default “Just another WordPress site”
Mobile Logo
Set a separate logo of your site for mobile devices (optional).
Site Icon
Set site’s favicon.
Favicon is what you see in browser tabs and bookmark bars.
Post Types
Posts
You can use Posts in order to create news, video posts, tutorials etc and whatever else you need. You can create categories and display the posts with the category view. You can also create tags to group your posts, based on similar details.
Pages
This is the post type for the pages of your site.
Enable Sidebar
Enable option if you want to display the sidebar on your page.
Hide banner top
Enable option if you need to hide banner top on your page.
Hide banner bottom
Enable option if you need to hide banner bottom on your page.
Reviews
This is the post type for your affiliates’ reviews. This post type has the metabox Affiliate fields where you can find all the available settings for each review.
Affiliate link
In this field you can find all the affiliate links you have created in Affiliate links post type. This is the affiliate link for your review when the user clicks “Review”.
Affiliate Bonus
The bonus of the Affiliate that is going to be used in the Review page, Gutenberg Blocks and shortcodes.
Affiliate Rating
The rating of the Affiliate with a range of 1-5 including decimal numbers in order to display the stars in Review page and Gutenberg Blocks.
Affiliate Ratings Base Number
Set the base number if you want your reviews not to start from zero.
Affiliate Rating Override
If you want to display your rating instead of user ratings for this specific review, check this field.
Review Template Style
If you want to override the style for this specific review you can select the style from this dropdown.
Affiliate Tag
The affiliate tag of that is going to be used in the Review page, Gutenberg Blocks and shortcodes.
Affiliate Tag Color
The background color of the affiliate’s tag.
Affiliate Background Color
The background color of the affiliate’s logo box.
Affiliate Overview List
The affiliate overview list that is going to be displayed in the Review page. You can add as many overview items as you want with the Add row button.
Item Title : refers to Overview List Item Title
Item Value : refers to Overview List Item Description
Affiliate Pros
The list items for the Pros of the review that are going to be displayed in Review Page, Gutenberg Blocks and shortcodes.You can add as many Props items as you want with the Add row button.
Affiliate Cons
The list items for the Cons of the review that is going to be displayed in Review Page, Gutenberg Blocks and shortcodes. You can add as many Cons items as you want with the Add row button.
Affiliate Description
The affiliate description that is going to be used in Gutenberg Blocks and shortcodes.
Affiliate Terms
The affiliate terms that are going to be used in Review Page, Gutenberg Blocks and shortcodes.
Affiliate Links
This is the post type for all of your affiliate links. First you create the affiliate link and then you associate it with a Review with Affiliate link dropdown in Review Page.
The idea behind this structure is to have a separate Post type for the affiliate links in order to give you the option to use each affiliate link in multiple Reviews.
Affiliate key
The word you want to be displayed in the frontend in the URL structure. Use only one word or use _ for multiple words. e.g. poker_site
Affiliate link
The link you want the “Play now” button to lead to which is the target link you have from your affiliate associate.
Affiliate onclick event
Execute a JavaScript when the affiliate link is clicked. (Below you can find examples for Google Analytics events)
Example Google Analytics Classic :
_gaq.push(["_trackEvent", "Button", "Click", "Casino name"]);
Example Google Analytics universal :
ga("send", "event", "Button", "Click", "Casino Name");
(This version is used in the theme by default)
FAQs
This is the post type for all of your FAQs. First you create the FAQ and then you can place it anywhere using the corresponding Gutenberg Block which is called PokaTheme FAQ. You can add as many questions and answers as you want with the Add Row button.
The idea behind this structure is to have a separate Post type for the FAQs in order to give you the option to use each FAQ in multiple pages.
Question : The question of the FAQ item.
Answer : The answer of the FAQ item.
Open : If you want this FAQ item opened, check this field.
Bonuses
New in v5. In v4 an operator’s bonus was a line of text on the review. In v5 a Bonus is a record of its own, which is what makes bonus archives, sortable bonus tables and expiry warnings possible at all.
You will find it in the admin sidebar under Bonuses, and on an operator’s own edit screen there is a panel listing that operator’s bonuses.
Operator : the review this bonus belongs to.
Headline : the value, as a player would read it – “100% up to 500 EUR + 50 spins”.
Code : the promo code a player enters to claim it.
Wagering : the wagering requirement, e.g. “35x bonus”.
Minimum deposit : the smallest qualifying deposit.
Maximum cashout : the most that can be withdrawn from the bonus.
Valid from / Valid until : dates, as Y-m-d. Leave the expiry empty for a bonus that does not expire. A bonus past its expiry is flagged in the admin and can be hidden from archives.
Terms : the bonus terms. If you publish a bonus value with nothing here, the editor says so – see the Compliance section.
CTA label : the button text. Empty falls back to the theme default.
Tracking URL : the affiliate link for this bonus, which may be different from the operator’s.
Bonuses are classified by the Bonus type taxonomy, and each type has its own archive – “No deposit bonuses”, “Free spins”, “Cashback” – at /bonus-type/<slug>/.
Payment methods
New in v5. A page per deposit and withdrawal method, with the operators that accept it. Each one carries:
Deposit time, Withdrawal time, Typical minimum, Fees, Where it works.
These are their own URLs on purpose. “Casinos accepting Trustly” and “How long does a Skrill withdrawal take” are searches people make, and a section inside a review cannot rank for them.
Operator taxonomies
v5 gives operators nine taxonomies. Every one of them is a filter on a listing and an archive page in its own right.
The name in brackets is the one to use in code – in a WP_Query, a template or a register_taxonomy call.
Licence (poka_licence) : /licence/ – the regulator. Each term can carry a badge image and a link to the regulator’s own register, which is what turns a badge into something a visitor can check.
Software (poka_software) : /software/ – the game providers an operator carries.
Deposit method (poka_deposit_method) : /deposit-method/
Withdrawal method (poka_withdrawal_method) : /withdrawal-method/
Language (poka_language) : /language/
Currency (poka_currency) : /currency/
Device (poka_device) : /device/
Operator group (poka_group) : /operator-group/ – the company behind several brands. Worth filling in: a visitor comparing two brands that share an owner, a wallet and a set of terms is entitled to know.
Bonus type (poka_bonus_type) : /bonus-type/ – on bonuses rather than operators.
Post type names, for code
Reviews are the affiliates post type, the redirect records are affiliate_links, FAQs are faqs, bonuses are poka_bonus and payment methods are poka_payment. The names are what they are for the same reason the settings ids are: renaming one would silently orphan every site’s content.
Trust and verification on an operator
Four fields on the review, under their own panel: when the operator was last verified, whether a deposit was tested, what withdrawal time was actually observed, and who tested it, plus free notes.
The review shows a verification line built from these, linking to your “How we rate” page. It goes stale on a schedule – Tools > PokaTheme freshness lists what is overdue – because a verification with no date on it is a claim, and one with a date from two years ago is a different claim.
These are the part of E-E-A-T that cannot be written from a desk, which is exactly why they are worth filling in.
Gutenberg Blocks
PokaTheme in this new version has created some ready-made custom Gutenberg Blocks which you can use as tools to build your pages, your posts and your entire site! Each of these blocks can be modified through its various options. In case you do not want to use blocks but shortcodes, each block corresponds to a shortcode. In the following sections there is a detailed analysis of the options of each block and in the end follows the corresponding shortcode.
PokaTheme Posts List
This block is used to display a Post List. You can modify the number of posts that appear, the number of layout’s columns, select a specific category to display posts, use posts’ excerpt instead of posts’ truncated content, load posts with ajax functionality. Also you have the ability to show or hide the “read more” button, posts’ featured image, posts’ meta information, posts’ author. Last but not least you can set the descriptions’ length, write your own text for the “Read more” button and display posts horizontally.
Number of Posts : The number of the posts you want to display. If you need to display all available posts enter -1.
Columns : You can select one of the four available options to set the columns of the Posts List layout.
Select Category : If you want to display posts from a specific category choose the category from this dropdown.
Show “read more” Button: Check this field to show the read more button when a specific category is set.
Show featured image : Check this field to display posts’ featured image.
Show post meta : Check this field to display posts’ meta data (date, views, etc ..).
Show author : Check this field to display posts’ authors.
Show horizontally : Check this field to display posts horizontally.
Use excerpt instead of truncated content : Check this field to display post’s excerpt instead of truncated content but if a post does not have excerpt then truncated text will appear.
Load more posts with AJAX : You can allow users to load more posts with ajax. Description length : The maximum number of words for each description/excerpt. “Read more” text : Write your own text for the “Read more”/”Show more” buttons.
The corresponding shortcode of this block is as follows:
[posts_list style=”” num=”” columns=”” cat=”” descr_excerpt=”” descr_length=”” read_more_show=”” read_more_text=”” ajax_load_more=”” show_author=”” show_featured_image=”” show_post_meta=”” horizontal=”” reverse=””']
News layouts
The Posts List block and [posts_list] take a Layout:
- Cards (
layout="card") – the card every list has always had, and the default. - Image tiles (
layout="tiles") – the photo is the tile, with the category, headline and date on it. - Magazine (
layout="magazine") – a lead tile with up to four compact cards beside it. - Headlines (
layout="headlines") – rows of title and date; turn on Show featured image for a small thumbnail.
Two settings work with any layout: Skip the first posts (offset), so a second list on the same page does not repeat the first, and Category label on the image (category_chip="true") for cards. “Load more” pages in the same layout, and the layouts’ stylesheet loads only on pages that use one. The category can be given as a slug as well as an ID.
[posts_list layout="tiles" num="3" columns="3" cat="football" offset="1"]
Shortcode Detailed Info:
[posts_list] Shortcode
The [posts_list] shortcode is used to display a customizable list of standard WordPress posts. It offers extensive configuration options that control the layout, quantity, filtering, content format, and dynamic behaviors such as AJAX-based loading. This shortcode is well-suited for use in blog grids, content hubs, or dynamically updating sections of a website.
Attributes
- style
Defines the visual style or layout preset to be used. Accepts predefined values (e.g., “1”, “2”, “3”) that correspond to design templates specified by the theme or plugin. - num
Sets the number of posts to be displayed in the list. Accepts integer values. - columns
Specifies how many columns will be used in the grid layout. This attribute is only effective when the selected style supports multi-column presentation. - cat
Filters the posts by category. Accepts either a numeric category ID or a category slug. Only posts belonging to the specified category will be shown. - descr_excerpt
Determines whether the post content shown will be the manually defined excerpt (true) or automatically truncated content (false). - descr_length
Specifies the maximum number of words or characters shown in the post description or excerpt, depending on the theme’s implementation. - read_more_show
Toggles the display of a “Read More” button or link beneath each post. Accepts true or false. - read_more_text
Allows customization of the label used for the “Read More” button. Accepts plain text values (e.g., “Continue Reading”, “Read More”). - ajax_load_more
Enables AJAX functionality that dynamically loads more posts without a full page reload. Accepts true or false. - show_author
Displays the author name associated with each post. Accepts true or false. - show_featured_image
Controls the visibility of the post’s featured image. Accepts true or false. - show_post_meta
Toggles the display of post metadata, such as date, category, tags, or reading time (depending on theme support). Accepts true or false. - horizontal
Enables a horizontal layout, placing post image and content side-by-side instead of stacked vertically. Accepts true or false. - reverse
Reverses the order of post entries within the list. When enabled, the last post will appear first. Accepts true or false.
Example Usage
[posts_list style=”2″ num=”5″ columns=”2″ cat=”6″ descr_excerpt=”true” descr_length=”20″ read_more_show=”false” read_more_text=”Read More” ajax_load_more=”true” show_author=”true” show_featured_image=”true” show_post_meta=”true” horizontal=”true” reverse=”true”]
In this example:
- Five posts from category ID 6 will be shown.
- The layout style 2 is applied, arranged in 2 columns.
- Each post displays a 20-word excerpt, along with featured image, author name, and metadata.
- Posts are arranged horizontally, in reverse order, and additional entries are loaded via AJAX.
Notes
- The availability and behavior of specific styles (style=”1″, “2”, etc.) depend on the active theme or plugin.
- For optimal performance with ajax_load_more, ensure that the necessary JavaScript files are enqueued properly.
- The horizontal and reverse attributes are best used in combination with appropriate styling or layout contexts.
PokaTheme Featured Videos
This block is used to display Featured Videos. You can select a specific category from which posts will appear or select specific posts to display.
Select Category : If you want to display posts from a specific category choose the category from this dropdown.
Select Posts : If you want to display specific posts select them from this dropdown, the maximum number you can select is three.
The corresponding shortcode of this block is as follows:
[featured_videos cat=”” ids=””]
Shortcode Detailed Info:
[featured_videos] Shortcode
The [featured_videos] shortcode is used to display a set of featured video posts. It allows for manual selection of individual video entries or filtering by category. This shortcode is ideal for embedding curated video content into landing pages, blog posts, or dedicated video sections of a website.
Attributes
- cat
Filters video entries by category. Accepts either a numeric category ID or a category slug. When provided, all published video posts assigned to the specified category will be displayed. - ids
Defines a specific set of video entries to display. Accepts a comma-separated list of video post IDs. When both ids and cat are defined, the shortcode will prioritize the IDs explicitly listed.
Example Usage
[featured_videos cat=”2″ ids=”11,12,13″]
In the example above:
- The shortcode will display videos with the post IDs 11, 12, and 13.
- These videos may also belong to category ID 2, though the ids parameter will take precedence.
Notes
- The videos must be created and published as a supported post type (e.g., a custom post type such as “Video”) and registered within the theme or plugin.
- If neither cat nor ids is specified, the output may be empty, depending on how the shortcode is implemented.
- The layout and number of videos displayed per row or section depend on the theme’s styling and shortcode handling.
- To ensure compatibility, verify that the video content type and relevant taxonomies are properly configured in the WordPress backend.
PokaTheme FAQ
This block is used to display FAQs which have been created by the corresponding custom post type. You can select
the FAQ you want to display and set the title element type.
Select and FAQ : Choose a FAQ to be displayed from the list of options in the dropdown menu. This dropdown contains all the FAQs created by the corresponding Custom Post Type.
Title element type : You can select one of the three available options to set the title’s element type.
The corresponding shortcode of this block is as follows:
[faq id=”” title_el=””]
Shortcode Detailed Info:
[faq] Shortcode
The [faq] shortcode is utilized to embed a specific Frequently Asked Questions (FAQ) entry within the content of a post, page, or widget. It provides a simple and structured method for displaying individual FAQ items based on their unique identifier (ID), with optional control over the HTML heading level used for the title.
Attributes
- id
The unique numerical ID of the FAQ item to be displayed. This corresponds to the post ID of the FAQ entry in the WordPress backend. Only a single ID can be used per shortcode instance. - title_el
Defines the HTML heading tag (h1, h2, h3, h4, etc.) used to render the title of the FAQ. This allows for consistent heading structure across the website. If omitted, a default heading level may be applied, depending on the theme or plugin configuration.
Example Usage
[faq id=”270″ title_el=”h3″]
In the above example:
- The FAQ entry with the ID 270 will be displayed.
- The FAQ title will be wrapped in an <h3> HTML element.
Notes
- It is recommended to use heading levels that reflect the logical content hierarchy
- The shortcode can be placed in any shortcode-compatible area, including the post/page editor, widgets, or custom HTML blocks.
- If the provided id does not correspond to an existing FAQ item, the output may be empty or fallback behavior may apply, depending on the implementation of the theme or plugin.
PokaTheme Carousel
This block is used to display a carousel. You can modify the type of the elements that appear, the style of the carousel and the number of items per row.
Type : You can select one of the two available element types that you want to display.
Style : You can select one of the two available styles for the carousel.
Carousel items per row : In this field you can set the number of carousel items per row.
The corresponding shortcode of this block is as follows:
[carousel type=”” style=”” num=””]
Shortcode Detailed Info:
[carousel] Shortcode
The [carousel] shortcode is used to display dynamic content in a horizontally scrolling carousel format. This shortcode allows the administrator to define the content source (e.g., affiliates, posts), the design style of the carousel, and the number of items to be shown. It is commonly used to enhance visual presentation and user engagement by showcasing content in a compact, interactive layout.
Attributes
- type
Specifies the content type to be displayed within the carousel. Supported values typically include:- “affiliates”: Displays affiliate entries.
- “posts”: Displays blog posts or articles.
- style
Defines the visual style of the carousel. Accepts a numerical value or predefined keyword that corresponds to a specific design layout. Each style may vary in animation, spacing, thumbnail size, navigation arrows, or pagination indicators. - num
Sets the total number of items to be shown within the carousel. Accepts integer values. Depending on the carousel’s implementation, this number may represent total entries or number of visible slides per screen.
Example Usage
[carousel type=”affiliates” style=”1″ num=”5″]
In this example:
- A carousel will display five affiliate entries.
- The layout style 1 will be applied.
Notes
- The appearance and functionality of the carousel depend heavily on the active theme and the JavaScript libraries used (e.g., Slick, Swiper, OwlCarousel).
- Content types must be properly registered in the WordPress installation and populated with visible content.
- Carousels are typically responsive but may require additional configuration for optimal performance on mobile devices.
- Navigation behavior (e.g., autoplay, loop, swipe support) is controlled either globally by the theme or via extended shortcode attributes, if available.
PokaTheme Button
This block is used to display a button. You can modify its appearance and its text, to choose if you want an icon to appear, you can also set the url of the link that will contain and where to open the linked document.
Button Text : The text of the button.
Button URL: The url of the button.
Button Size : You can select one of the three available button sizes.
Full width : If you want your button to occupy the full width of the container check this field.
Style : You can select one of the three available button styles.
Relationship Attribute (rel) : You can select one of the fourteen available relationship attribute options from this dropdown.
Target Attribute (target) : You can select one of the five target attribute options.
Icon Class : If you want to display an icon in this button, type the icon class in this field. You can find all poka icons here: https://pokatheme.com/topic/poka-icon-library/
Icon Size : You can select one of the two available icon sizes.
Choose an Image Icon : Choose an image icon from your media or upload it.
Icon alignment : You can select one of the two available icon alignments.
The corresponding shortcode of this block is as follows:
[btn btn_size=”” full_width=”” style=”” href=”” rel=”” target=”” icon=”” icon_size=”” icon_alignment=””] Title [/btn]
Shortcode Detailed Info:
[btn]…[/btn] Shortcode
The [btn] shortcode is used to render a fully customizable call-to-action (CTA) button. It supports various styling, layout, and behavioral options, making it suitable for a wide range of use cases such as external links, promotional actions, downloads, or navigation controls.
This shortcode uses an opening and closing tag structure, where the enclosed text defines the button’s visible label.
Attributes
- btn_size
Specifies the size of the button. Supported values typically include:- “small” – For compact buttons used in tight spaces.
- “medium” – Standard size for general use.
- “large” – Emphasized size, suitable for primary CTAs.
- full_width
Determines whether the button should expand to the full width of its container. Accepts true or false. When enabled, the button will occupy 100% of the parent element’s width. - style
Refers to a predefined visual button style. Accepts numeric values such as “1”, “2”, “3”, etc., each corresponding to a design variation (e.g., color, border, shadow) as defined by the theme or plugin. - href
Sets the destination URL that the button links to. Accepts any valid URL (internal or external). If omitted, the button will not be clickable. - rel
Defines the rel attribute of the link. Common values include:- “nofollow” – Prevents SEO link juice.
- “noopener” – Improves security for external links.
- “noreferrer” – Hides referrer information.
- target
Specifies how the link should be opened. Common values:- “_blank” – Opens in a new browser tab.
- “_self” – Opens in the same tab (default behavior if omitted).
- icon
Adds an icon to the button. Accepts an icon class or name from the supported icon library (e.g., “star”, “arrow-right”). - icon_size
Defines the size of the icon. Accepts values such as “1x”, “2x”, “3x”, depending on the icon font in use (e.g., Font Awesome scaling classes). - icon_alignment
Sets the icon’s position relative to the button label. Accepts “left” or “right”.
Example Usage
[btn btn_size=”large” full_width=”true” style=”1″ href=”https://example.com” rel=”nofollow” target=”_blank” icon=”star” icon_size=”2x” icon_alignment=”left”] Button [/btn]
In this example:
- A large, full-width button is displayed.
- It links to https://example.com in a new tab, with a nofollow relationship.
- A left-aligned “star” icon appears beside the text “Button”.
Notes
- The button label is defined by the content placed between the [btn] and [/btn] tags.
- If the href attribute is not provided, the button will not function as a link.
- The actual appearance of the button (fonts, colors, borders, hover effects) is controlled by the active theme’s CSS or the plugin’s style definitions.
- Ensure the icon class is supported by the active icon library to avoid rendering issues.
PokaTheme Box text
This block is used to display a box text. You can set the color of the box, its content, you can also choose if you want to use uppertitle or icon and set their color.
Box Type : You can select one of the two available box type options.
Icon Class : The icon class of the icon you want to display. Only available for Icon Box Type. You can find all poka icons here: https://pokatheme.com/topic/poka-icon-library/
Uppertitle : The uppertitle. Only available for Uppertitle Box Type.
Title : The title of the box text.
Text : The text of the box text.
Box Color : Choose the box’s color.
Uppertitle Color : Choose the uppetitle’s or icon’s color.
The corresponding shortcode of this block is as follows:
[box_text icon=”” uppertitle=”” title=”” color=”” uppertitle_color=””] Text [/box_text]
Shortcode Detailed Info:
[box_text] Shortcode
The [box_text] shortcode is used to display text content within a visually styled container. It supports additional decorative elements such as an icon, an optional uppertitle (label above the main title), and custom color assignments. This shortcode is commonly used for callout boxes, feature highlights, announcements, or visually emphasized sections of content.
Attributes
- icon
Defines the icon to be displayed alongside the content. Accepts an icon class name (e.g., “star”, “info-circle”), typically compatible with the theme’s icon font library (such as Font Awesome or custom SVG sets). - uppertitle
Sets a short, secondary heading placed above the main title. Often used for labels or short introductory tags (e.g., “New”, “Promo”, “Limited Offer”). - title
Defines the primary heading of the box. This is the most prominent text element and is typically styled larger or bolder than the rest of the content. - color
Sets the text color of the main title. Accepts any valid CSS color value (e.g., #f90, #ff0000, rgba(…), or named colors). - uppertitle_color
Sets the color of the uppertitle and/or the icon. Accepts any valid CSS color value, offering visual distinction between the primary and secondary text elements.
Example Usage
[box_text icon=”star” uppertitle=”Special” title=”Welcome!” color=”#f90″ uppertitle_color=”#00f”]
Text [/box_text]
In the example above:
- A box is rendered with the icon “star” and a blue uppertitle labeled “Special”.
- The main title “Welcome!” is styled in orange (#f90).
- The body of the box contains the word “Text”.
Notes
- The content placed between the opening and closing [box_text]…[/box_text] tags is treated as the main body text of the box.
- If no icon or uppertitle is defined, the box will still render, but without decorative elements.
- Design and layout of the box (padding, borders, fonts, background, etc.) depend on the theme’s CSS and may vary across styles or templates.
- This shortcode is useful for attention-grabbing sections on landing pages, product features, or testimonials.
PokaTheme Affiliates Table
This block is used to display the affiliates table. You can modify the number of affiliates that appear, define a specific category from which affiliates will appear, display specific reviews, choose the style you want and the ordering method. Also you can enable or disable the table sorting filters, the affiliates counter and the overall rating.
Num : The number of affiliates you want to display. If you need to display all available Posts enter -1.
Select Affiliate Category : If you want to display affiliates from a specific category, select the category from this dropdown.
Sort : You can select the ordering of the affiliates.
Logo affiliate link : Check this field to convert logo image into a link of the review.
Select Reviews : If you want to display specific reviews, select them from this dropdown.
Custom Order : If you want to display specific reviews, type the name(s) and press Enter each time you add one.
Show Counter : Check this field to display the counter icon.
Show Rating : Check this field to display the affiliates’ ratings.
Show Table Sorting : Check this field to display table’s sorting options.
Load More Button : If it is checked, and if selected reviews or custom ordered reviews are more than num, it is displayed below reviews.
Enable GEOlocation : Check this field if you want to display only allowed affiliates of the current country.
Style : You can select one of the five available styles for the Affiliates Table.
The corresponding shortcode of this block is as follows:
[affiliates_table num=”” cat=”” sort=”” logo_aff_link=”” reviews=”” show_counter=”” show_rating=”” show_table_sorting=”” css_class=”” style=”” load_more_button="" selected_affiliates=””]
Shortcode Detailed Info:
[affiliates_table] Shortcode
The [affiliates_table] shortcode renders a structured table containing affiliate listings. It supports a wide range of configuration parameters, allowing for control over content filtering, visual layout, interactivity, and geolocation-based display logic. This shortcode is typically used to present affiliate comparisons, lists of partners, or curated programs in a user-friendly, tabular format.
Attributes
- num
Defines the total number of affiliates to display in the table. Accepts integer values. The actual number of visible entries may also depend on pagination or “load more” settings. - cat
Filters affiliates by category. Accepts either a numeric category ID or a category slug. Affiliates belonging to the specified category will be included in the output. - sort
Specifies the sorting method applied to the affiliate entries. Supported values may include date, title, random, or other sorting options defined by the theme or plugin. - logo_aff_link
Determines whether the affiliate logo should act as a hyperlink to the affiliate’s detail or review page. Accepts true or false. - reviews
A comma-separated list of review post IDs to associate with the affiliates. This allows for displaying or referencing related reviews alongside each affiliate entry. - show_counter
Enables or disables the display of affiliate counters (e.g., click count, impressions, or conversions). Accepts true or false. - show_rating
Controls whether affiliate ratings should be shown in the table. Accepts true or false. - show_table_sorting
Enables client-side sorting controls within the table headers. When activated, users can sort the table by specific columns. Accepts true or false. - css_class
Defines one or more custom CSS classes to be applied to the table wrapper. This facilitates advanced design customizations via external stylesheets. - style
Specifies the layout style of the table. Accepts numerical values (e.g., 1, 2, 3, 4, 5), each corresponding to a predefined design template defined by the theme. - load_more_button
Activates dynamic loading functionality via a “Load More” button. This allows additional affiliate entries to be revealed without reloading the page. Accepts true or false. - selected_affiliates
Restricts the output to a specific set of affiliates, based on their post IDs. Provide a comma-separated list of affiliate IDs. When this attribute is used, other filters such as cat or num may be overridden. - geolocation
Enables filtering of affiliates based on the geographic location of the visitor. Accepts true or false. When enabled, only affiliates relevant to the user’s region will be displayed.
Example Usage
[affiliates_table num=”5″ cat=”2″ sort=”date” logo_aff_link=”true” reviews=”311,306,299″ show_counter=”false” show_rating=”false” show_table_sorting=”true” css_class=”custom-class” style=”3″ load_more_button=”true” selected_affiliates=”10,14,19″ geolocation=”true”]
Notes
- The shortcode must be used in a context where affiliate data (custom post type or equivalent) is properly configured and published.
- When both selected_affiliates and cat are provided, the system will prioritize selected_affiliates and ignore category-based filtering.
- Geolocation and dynamic loading may require additional functionality provided by the theme, plugin, or third-party services.
PokaTheme Single Affiliate
This block is used to display a Single Affiliate. You can choose its style and select the affiliate you want to display.
Select an affiliate : From this dropdown select the affiliate you want to display.
Style: You can select one of the ten available styles for the Single Affiliate layout.
The corresponding shortcode of this block is as follows:
[affiliates_single id=”” style=””]
Shortcode Detailed Info:
[affiliates_single] Shortcode
The [affiliates_single] shortcode is used to display an individual affiliate entry within the content of a post, page, or widget area. It provides a structured and styled layout for a single affiliate, including its logo, description, call-to-action elements, and other related data as defined by the active theme or plugin. This shortcode is ideal for use in promotional sections, sidebar banners, or targeted content placements.
Attributes
- id
Specifies the unique identifier (post ID) of the affiliate entry to be displayed. This ID must correspond to a valid affiliate post created within the WordPress dashboard. If the given ID does not match an existing affiliate, the output may be empty or produce a fallback result. - style
Defines the visual layout to be applied to the affiliate box. Accepts numerical values from 1 to 10, with each number referencing a specific design template predefined in the theme or plugin. These styles may vary in terms of structure, color scheme, button placement, image size, or layout orientation (e.g., horizontal vs. vertical).
Example Usage
[affiliates_single id=”123″ style=”3″]
In this example:
- The affiliate entry with the ID 123 will be displayed.
- The layout template labeled as Style 3 will be applied.
Notes
- Each style corresponds to a specific layout defined in the theme. Administrators are encouraged to test different styles to determine which layout best fits their content and design requirements.
- The content displayed (such as title, rating, logo, description, or CTA button) depends on the structure and content of the affiliate post itself.
- This shortcode can be inserted into any content area that supports shortcodes, including page builders, block editors, widgets, and template files.
PokaTheme Affiliates Search
This block is used to display an ajax search form about affiliates. Υou can modify the placeholder and choose if you want to display affiliates results only from a specific category.
Placeholder : The placeholder of the search form.
Category : If you want the search form to display results only from a specific affiliate category, select the category from this dropdown.
The corresponding shortcode of this block is as follows:
[affiliates_search placeholder=”” cat=””]
Shortcode Detailed Info:
[affiliates_search] Shortcode
The [affiliates_search] shortcode renders a front-end search form that enables users to search through available affiliate entries. This functionality is particularly useful when managing a large volume of affiliates, allowing users to quickly locate specific programs by keyword. The form can be customized with a placeholder text and optionally filtered by category to restrict the search scope.
Attributes
- placeholder
Defines the text displayed inside the search input field before the user types. This placeholder helps guide users on what they can search for (e.g., “Search by name”, “Type to search…”). Accepts plain text values. - cat
Filters the search results by a specific affiliate category. Accepts either a numeric category ID or a category slug. When specified, the search will be limited to affiliates within the designated category only.
Example Usage
[affiliates_search placeholder=”Type to search…” cat=”2″]
In this example:
- A search input field will appear with the placeholder “Type to search…”.
- The search will be limited to affiliate entries belonging to category ID 2.
Notes
- The shortcode outputs only the search form; the actual results are typically displayed in a separate area of the page, depending on theme or plugin integration.
- For the search to function properly, affiliate entries must be indexed and searchable within the configured custom post type.
- When used without the cat attribute, the search will include all published affiliates.
- Styling, form behavior, and result rendering may vary depending on the active theme or accompanying JavaScript handlers.
PokaTheme Affiliates List
This block is used to display an affiliates’ list. You can modify the number of affiliates that appear, define a specific category from which affiliates will appear, display specific reviews, choose the style you want, the sorting method and the number of layout’s columns.
Styles : You can select one of the four available styles for the Affiliates List.
Num : The number of affiliates you want to display. If you need to display all available affiliates enter -1.
Select Affiliate Category : If you want the Affiliates List to display results only from a certain category, select the category from this dropdown.
Sort : You can select the ordering of the Affiliates List.
Columns: You can select one of the six available options to set the number of columns.
Select Reviews: If you want to display specific reviews, select them from this dropdown.
Load More Button : If it is checked, and if selected reviews are more than num, it is displayed below reviews.
Enable GEOlocation : Check this field if you want to display only allowed affiliates of the current country.
The corresponding shortcode of this block is as follows:
[affiliates_list style=”” num=”” cat=”” sort=”” columns=”” reviews=”” load_more_button=””]
Shortcode Detailed Info:
[affiliates_list] Shortcode
The [affiliates_list] shortcode is used to display a customizable list of affiliate entries in a flexible grid or block layout. It allows the administrator to define how many affiliates to display, how they are filtered and sorted, and how they are arranged visually. The shortcode also supports location-based filtering and AJAX-powered dynamic loading, making it suitable for a variety of front-end display scenarios such as affiliate directories, comparison listings, or promotional sections.
Attributes
- style
Defines the layout style of the affiliate list. Common values include “grid” or other layout types defined by the theme. Each style corresponds to a specific visual format, such as boxed cards, full-width rows, or minimal compact views. - num
Specifies the number of affiliate entries to display. Accepts integer values. This determines how many affiliates are shown on initial page load. - cat
Filters affiliates based on category. Accepts a category ID (numeric) or slug (string). When set, only affiliates assigned to the specified category will be displayed. - sort
Determines the sorting order of the affiliates. Supported values include title, date, random, or other sort types depending on plugin or theme support. - columns
Sets the number of columns used to arrange the affiliate entries. Accepts integer values. This is only applicable to styles that support multi-column grid layouts. - reviews
A comma-separated list of review post IDs to associate with the displayed affiliates. These may be shown as links, badges, or excerpts, depending on theme configuration. - load_more_button
Enables dynamic loading of additional affiliate entries using a “Load More” button. Accepts true or false. When enabled, additional entries will be appended asynchronously without reloading the page. - geolocation
Activates location-aware filtering based on the visitor’s geographic location. Accepts true or false. When enabled, only affiliates relevant to the user’s location will be displayed.
Example Usage
[affiliates_list style=”grid” num=”6″ cat=”2″ sort=”title” columns=”3″ reviews=”311,306,299″ load_more_button=”true” geolocation=”true”]
In the example above:
- Six affiliates from category ID 2 will be displayed in a 3-column grid.
- The entries are sorted by title.
- Reviews with IDs 311, 306, and 299 are associated with the affiliates.
- The list will support both geolocation filtering and AJAX-based expansion.
Notes
- The visual appearance and functionality of each style depend on the theme’s design system. Administrators are advised to test available styles for layout consistency.
- The load_more_button feature enhances user experience on long lists by reducing initial page load time and allowing incremental content expansion.
- The geolocation functionality may require user permission for location access and may depend on third-party geolocation APIs or plugin modules.
PokaTheme Featured Affiliates
This block is used to display featured affiliates. You can select which specific Reviews you want to display, choose the
Thumbnails’ links and enter the Featured title in the middle.
Select Reviews : If you want to display specific reviews, select them from this dropdown.
Thumbnail link : You can select one of the three available thumbnail’s link options.
Featured title : The title of the featured review in the middle.
The corresponding shortcode of this block is as follows:
[affiliates_featured ids=”” thumb_link=”” featured_title=””]
Shortcode Detailed Info:
[affiliates_featured] Shortcode
The [affiliates_featured] shortcode is used to display a curated selection of affiliate entries as “featured”. It allows the administrator to highlight specific affiliate programs by explicitly selecting them through their post IDs. The shortcode offers options to enable thumbnail linking and to assign a custom heading to the featured section. It is ideal for promotional sections, landing pages, or homepage highlights.
Attributes
- ids
A comma-separated list of affiliate post IDs to be displayed. Each ID should correspond to a valid affiliate entry created in the WordPress backend. The order in which the IDs are listed will typically be preserved in the output. - thumb_link
Determines whether each affiliate’s thumbnail image should function as a clickable link directing to the affiliate’s detailed page or review. Accepts true or false. - featured_title
Sets a custom title to be displayed above the list of featured affiliates. This title is rendered as a heading element, and its appearance may vary depending on theme styling.
Example Usage
[affiliates_featured ids=”123,124,125″ thumb_link=”true” featured_title=”Best Affiliates”]
In the example above:
- Three affiliates, with IDs 123, 124, and 125, are selected for display.
- Their thumbnail images will be linked to their respective detail pages.
- The section will be introduced with the heading “Best Affiliates”.
Notes
- This shortcode is strictly controlled by the ids parameter and does not support category-based filtering or dynamic selection.
- The visual layout of the featured affiliates depends on the active theme and may include elements such as logos, titles, ratings, or CTA buttons.
- The thumb_link attribute is useful for improving user navigation and promoting affiliate engagement.
- The featured_title is optional, but recommended for contextual clarity and SEO benefits.
PokaTheme Single Bonus
Shows one bonus – its headline value, code, wagering, expiry and button. Use it inside a review, or anywhere you want to put one specific offer in front of somebody.
Bonus : which bonus to show.
Style : the layout.
The corresponding shortcode of this block is as follows:
[poka_bonus id="" style=""]
PokaTheme Bonus List
A list of bonuses, filtered by operator or by bonus type. This is the block for “all the free spins offers” or “everything this operator is running”.
Operator : show only this operator’s bonuses. Leave empty for all.
Type : a bonus-type slug – no-deposit, free-spins, cashback. Leave empty for all.
Num : how many to show. Default 3.
Columns : how many across. Default 1.
Show expired : off by default. An expired offer on a live page is the fastest way to lose a reader’s trust, so turning this on is a deliberate choice.
Order by : date by default.
Style : the layout.
Show the bonus type : prints each bonus’s type (Welcome bonus, Free bets) above its headline. Off by default; show_type="true" in the shortcode, and on [poka_bonus] too.
The corresponding shortcode of this block is as follows:
[poka_bonus_list operator="" type="" num="3" columns="1" show_expired="false" orderby="date" style="1"]
PokaTheme Bonus Table
The same data as a table, which is what a reader comparing offers actually wants. You choose the columns.
Operator, Type, Num, Show expired, Order by : as above. Num defaults to 10 and is capped at 100.
Columns : a comma-separated list, in the order you want them. The default is operator,headline,wagering,code,expiry,cta.
The corresponding shortcode of this block is as follows:
[poka_bonus_table operator="" type="" num="10" show_expired="false" orderby="date" columns="operator,headline,wagering,code,expiry,cta"]
PokaTheme Comparison Table
A sortable, filterable table of operators – the block a ranked listicle is built around. It is not one of the five fixed affiliate-table styles; you choose the columns, and the visitor can sort and filter without the page jumping.
Columns : a comma-separated list, in the order you want them. The default is operator,rating,bonus,licence,cta.
Reviews : specific reviews, if you want to name them rather than query for them.
Cat : a review category to draw from.
Num : how many rows. Default 10.
Sort : the starting order. Default is by rating.
Filter : whether the visitor gets the filter controls. On by default.
Title : an optional heading above the table.
The corresponding shortcode of this block is as follows:
[poka_comparison_table columns="operator,rating,bonus,licence,cta" reviews="" cat="" num="10" sort="rating" filter="true" title=""]
The sorting and filtering happen in the browser, on rows that are already there, and every cell has its size reserved before the data arrives. That is deliberate: a table that reflows as it loads pushes the thing a visitor was about to tap, and that is measured as layout shift by everything that measures pages.
Widgets
Poka Posts
This widget is used to display posts. You can modify the title, choose the style of the widget, choose the ordering method of the posts, define the number of posts you want to display, define a specific category from which posts will appear, or display only specific posts.
Title: The title of the widget.
Style: You can select one of the three available options styles for the widget.
Order By: You can select the two available ordering methods.
Number of Posts: The number of the posts you want to display. If you need to display all available posts enter -1. Category ID of Posts: If you want the Poka Posts widget to display results only from a certain category, type the ID of the category in this field.
Display only specific posts (For example: 12,8,20): If you want to display specific posts you can list them in this field separated by comma. For example: 12,20,22,21
Tag Cloud
Use Tag Cloud widget to display all available tags.
Poka Archives
Use the Poka Archives widget to display all the archives.
Title: The title of the widget.
Poka Categories
Use Poka Categories widget to display all the categories.
Title: The title of the widget.
Poka Legacy Text
Use Poka Legacy Text to display legacy text box widget.
Title: The title of the widget.
Text editor: The content of the widget.
Navigation Menu
Use this widget to display any registered navigation menu.
Title: The title of the widget.
Select Menu: You can select any registered navigation menu you want to display
Menu badges
A small New, Hot, Top, Best or Live label after a menu item’s title, in the header menus and in a Navigation Menu widget. In Appearance > Menus, open Screen Options, tick CSS Classes, and give the item one of poka-badge-new, poka-badge-hot, poka-badge-top, poka-badge-best or poka-badge-live. The label is real text, so screen readers read it and a translation changes it. Developers can add their own with the poka_menu_badges filter.
New page types in v5
Version 5 adds eight kinds of page that v4 did not have. Each is a distinct, rankable URL, and each one exists because it is a search people make that a section inside a review cannot answer.
None of them need setting up. They appear as soon as the content behind them does, and their URL bases are filterable if you want different words.
Bonus type archives
/bonus-type/<slug>/ – every bonus of one kind, across every operator. “No deposit bonuses”, “Free spins”, “Cashback”. Create the term, classify your bonuses, and the page exists.
Payment method pages
/payment/<slug>/ – one page per deposit and withdrawal method, with its times, minimums and fees, and the operators that accept it. Add a Payment method and write the guide; the operator list builds itself from the deposit-method and withdrawal-method taxonomies.
Country landing pages
/casinos-in/<country>/ – the operators available in one country, using the same per-post country rules the geolocation engine already reads. If you have been filling in allowed and disallowed countries on reviews, these pages already have their content.
Head-to-head comparison pages
/vs/<operator-a>-vs-<operator-b>/ – two operators side by side on the fields you actually compare on. They come from the operator relationships you set on a review, so you decide which comparisons exist rather than the theme generating every possible pair.
Software and provider pages
/software/<slug>/ – “casinos with Evolution live games”. From the Software taxonomy on your operators.
Author profiles
/author/<user>/ – credentials, tenure, verification links and the reviews that author wrote. Fill in the author fields on the user’s WordPress profile. An unsigned review is an anonymous recommendation about money, and this is the page that stops it being one.
“How we rate”
Your methodology, linked from the verification line on every review. Insert the How we rate pattern into a new page to get a structure, then write your own; point Customize > Theme Settings > General > How we rate page at it.
Responsible gambling hub
Helpline directory, self-exclusion links, deposit-limit explainer. Insert the Responsible gambling pattern and point Customize > Theme Settings > General > Responsible gambling page at it. The footer links it from every page when the compliance switch is on.
Dark mode
v4 could be dark only by running a second site with a dark palette. v5 has a real one: a switch in the header, per visitor, over the same content.
- Turn it on in Customize > Theme Settings > General > Offer a dark mode. It is off by default, so updating to v5 does not change how your site looks.
- Default appearance decides what a first-time visitor sees. A visitor’s own choice is remembered in their browser and always wins.
- Give a Logo for dark mode if your logo is dark ink; it is swapped in automatically.
- Every colour in the dark palette is derived from your own settings, so a site with a custom palette gets a dark version of that palette rather than somebody else’s idea of dark.
You can also put the switch somewhere else with the shortcode:
[poka_theme_toggle]
Block patterns
A pattern is a ready-made section you insert from the block inserter: a hero, a ranked top ten, a bonus grid, a comparison, an FAQ, a trust strip, a legal footer. Inserting one puts real blocks into your page, which you then edit like anything else – nothing stays linked to the theme, and nothing breaks if you change your mind.
v5 ships 37 of them, in two groups:
- Eleven universal sections that work for any market.
- Three per market – an opening section, a listing and an FAQ – for Casino, Sportsbook, Crypto, Poker, Slots, Esports, Forex and VPN, each written in that market’s own language rather than casino copy with the nouns swapped.
Find them under PokaTheme in the inserter, grouped by what they are for. Set Customize > Visual Settings > Style > Pattern library to your market to stop the other markets’ patterns appearing.
The patterns are built on blocks that query rather than on pasted screenshots, so a listing pattern shows your operators the moment you insert it.
The pattern names
You do not need these to use a pattern – they are here for anyone filtering the library in code.
The eleven universal sections, plus the two trust-page starters:
pokatheme/section-hero-search pokatheme/section-hero-top-pick pokatheme/section-listing-top-ten pokatheme/section-listing-cards pokatheme/section-listing-new pokatheme/section-bonus-grid pokatheme/section-bonus-table pokatheme/section-comparison pokatheme/section-trust-strip pokatheme/section-faq pokatheme/section-footer-legal pokatheme/how-we-rate pokatheme/responsible-gambling
The per-market ones are named pokatheme/niche-<market>-<part>, where the market is casino, sportsbook, crypto, poker, slots, esports, forex or vpn and the part is hero, listing or faq:
pokatheme/niche-casino-hero pokatheme/niche-casino-listing pokatheme/niche-casino-faq pokatheme/niche-sportsbook-hero pokatheme/niche-sportsbook-listing pokatheme/niche-sportsbook-faq pokatheme/niche-crypto-hero pokatheme/niche-crypto-listing pokatheme/niche-crypto-faq pokatheme/niche-poker-hero pokatheme/niche-poker-listing pokatheme/niche-poker-faq pokatheme/niche-slots-hero pokatheme/niche-slots-listing pokatheme/niche-slots-faq pokatheme/niche-esports-hero pokatheme/niche-esports-listing pokatheme/niche-esports-faq pokatheme/niche-forex-hero pokatheme/niche-forex-listing pokatheme/niche-forex-faq pokatheme/niche-vpn-hero pokatheme/niche-vpn-listing pokatheme/niche-vpn-faq
Adding a market of your own is two filters: poka_pattern_niches to offer it, and poka_niche_pattern_copy to give it words.
Freshness
Tools > PokaTheme freshness lists what has gone stale. Bonus pages are expected to be touched every 7 days and listicles every 120, and expired bonuses are flagged whatever their date.
It is a list, not an alarm: nothing is hidden or unpublished for you. The point is that on a site with four hundred reviews, “which of these is now wrong” is not a question anybody can answer by looking.
Other shortcodes added in v5
Every one of these is also available as a block where a block makes sense; the shortcodes are here for widgets, templates and page builders.
[poka_disclosure] : the affiliate disclosure line, wherever you want it. It uses your Compliance wording.
[poka_licences] : the licence badges for an operator, each linked to the regulator’s register.
[poka_verification] : the verification line – when this operator was last checked, by whom, and what was observed.
[poka_author_box] : the author box, with credentials and a link to the author’s profile page.
[poka_related_operators] : operators related to this one, from the relationships set on the review.
[poka_comparisons] : the list of head-to-head comparisons this operator appears in.
[poka_theme_toggle] : the light/dark switch.
Block bindings
v5 exposes an operator’s fields – rating, bonus value, licence, verification date and the rest – to WordPress’s block bindings. In practice that means you can put an operator’s rating inside an ordinary core Heading or Paragraph block and style it with the normal block controls, instead of learning a theme-specific shortcode attribute for every layout you want.
Connect a core block to a field from the block’s own sidebar. Block bindings need WordPress 6.5 or later; on anything older the feature is simply absent and nothing else changes.
Hooks/API
Filters
What is on this page, and what is not
The theme fires a great many filters. The ones documented here are the ones meant as extension points: they exist so that you can change something, and they will keep working for the whole of 5.x.
The rest are internal wiring. They are visible if you go looking, and nothing stops you hooking one, but they are not documented and they are not promised – documenting all of them would turn every implementation detail into a contract nobody meant to sign, which is how a theme ends up unable to fix its own code. The same rule applies to functions: three theme functions are documented and the other four hundred-odd are internal.
Added in v5 – bonuses
poka_bonus_meta_fields : the fields a bonus carries. Add your own.
poka_bonus_query_args : the query behind bonus lists, tables and archives.
poka_bonus_cta : the call-to-action on a bonus.
poka_bonus_archive_show_expired : whether expired bonuses appear on their archive.
Added in v5 – the new page types
poka_country_base : the URL base for country pages. Default “casinos-in”.
poka_country_pages : which countries get a page.
poka_country_operators : which operators appear on one.
poka_comparison_base : the URL base for head-to-head pages. Default “vs”.
poka_comparison_rows : what a comparison compares.
poka_comparison_table_columns : and in what order.
poka_payment_base : the URL base for payment-method pages. Default “payment”.
poka_payment_operators_args : which operators are listed on one.
poka_country_intro, poka_comparison_intro, poka_payment_archive_intro : the introductory copy on each.
Added in v5 – compliance and trust
poka_compliance_profiles : add a market preset of your own, or change one of the six.
poka_compliance_requires : what the active profile requires.
poka_disclosure_text : the disclosure wording.
poka_disclosure_notice : the disclosure block itself.
poka_ad_label : the marker put on a paid link.
poka_compliance_age_notice : the age statement.
poka_responsible_notice : the responsible-gambling line.
poka_compliance_footer : the footer block those two sit in.
poka_verification_thresholds : when a verification stops counting as current.
poka_freshness_cadences : how long each kind of page may go untouched. Defaults are 7 days for bonuses and 120 for listicles.
Added in v5 – appearance
poka_style_variations : add a style variation, or take one out.
poka_pattern_niches : the markets offered in the pattern library.
poka_niche_pattern_copy : the copy inside the per-market patterns. This is the one to use for a language other than English.
poka_pattern_categories : the inserter’s own grouping.
poka_dark_mode_enabled : whether dark mode is offered, for code that needs to decide per page.
poka_default_css_vars : the theme’s default value for every setting.
poka_css_var_map : how settings map to CSS custom properties.
poka_theme_json_palette_map : which of your colours the block editor’s palette shows.
Added in v5 – operators
poka_operator_bindable_fields : which operator fields block bindings expose.
poka_operator_relationships : the relationships behind comparison pages and related operators.
poka_affiliate_taxonomies : the taxonomies registered on operators.
Added in v5 – performance
poka_component_styles : which component stylesheets a page loads.
poka_front_end_dependencies : what the front end enqueues.
poka_webp_conversion, poka_webp_formats : what gets converted to WebP, and to which formats.
poka_bundled_fonts, poka_inline_fonts, poka_async_fonts : how fonts are loaded.
Added in v5 – upgrading
poka_migration_steps : the migration tool’s steps.
poka_migration_batch_size : how many records one run handles. Default 25.
poka_deprecated_map : the v4 compatibility layer – which old name maps to which new one.
poka_deprecated_notices : whether deprecation notices are emitted at all.
Example – add a market preset of your own:
add_filter( 'poka_compliance_profiles', 'my_compliance_profiles' );
function my_compliance_profiles( $profiles ) {
$profiles['dk'] = array(
'label' => 'Denmark',
'age' => 18,
'on' => array( 'age', 'disclosure', 'ad_label', 'responsible', 'licence', 'terms' ),
);
return $profiles;
}
“poka_main_col_class_filter”
Use this filter to override the main content width, based on bootstrap grid.
You can find this filter in archive-affilitates.php, category.php, index.php, search.php, taxonomy-lists.php
Example Snippet:
add_filter( 'poka_main_col_class_filter', 'my_override_function' ); function my_override_function () {
return 'col-md-10' ;
}
Note: If you do that you should also add a filter to poka_sidebar_col_class_filter in order to prevent the grid from collapsing.
“poka_sidebar_col_class_filter”
Use this filter to override the sidebar width, based on the bootstrap grid.
You can find this filter in sidebar.php
Example Snippet:
add_filter( 'poka_sidebar_col_class_filter', 'my_override_function' );
function my_override_function () {
return 'col-md-6' ;
}
“poka_post_widget_v1_query_args”
You can change the arguments of WP Query for the Poka Posts widget with this filter.
“poka_breadcrumbs_args”
Use this filter to override the breadcrumbs default arguments array.
You can find this filter in inc/addons/breadcrumbs.php
Example Snippet:
add_filter ( 'poka_breadcrumbs_args' , 'my_override_function' );
function my_override_function ($defaults) {
$defaults['separator_icon'] = '|' ;
return $defaults;}
“poka_breadcrumbs_filter”
You can use this filter to alter the HTML of breadcrumbs or append something after the end of breadcrumbs output.
You can find this filter in inc/addons/breadcrumbs.php
Example Snippet:
add_filter ( 'poka_breadcrumbs_filter' , 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Breadcrumbs</h5></div>' ;
return $html;
}
“poka_pagination_filter”
You can use this filter to alter the HTML of pagination or append something after the end of pagination’s output.
You can find this filter in inc/addons/pagination.php
Example Snippet:
add_filter ( 'poka_pagination_filter', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Pagination</h5></div>' ;
return $html;
}
“poka_affiliate_link_atts”
You can use this filter to add custom attributes to affiliate link buttons.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_link_atts', 'my_override_function' );
function my_override_function () {
return 'rel="nofollow" ' ;
}
“poka_affiliate_link”
Use this filter to override the default structure of the affiliate’s link.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_link', 'my_override_function' ); function my_override_function ($link) {
If ( '' !== $review_id ) {
$link = 'pokatheme.com';
} else {
$link = '#';
}
return $link ;
}
“poka_review_single_button_html”
You can use this filter to alter the HTML of reviews’ links or append something after the end of reviews’ links.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_review_single_button_html', 'my_override_function' ); function my_override_function ($link) {
$link = '<a href="#"><span>This is a custom review link</span></a>';
return $link;
}
“poka_affiliate_bonus_text”
You can use this filter to override the text of the affiliate’s bonus.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_bonus_text', 'my_override_function' ); function my_override_function () {
return '<strong>This is my custom bonus tex</strong>' ;
}
“poka_affiliate_button_classes”
You can use this filter to override the classes of the affiliate’s button or add some more.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_button_classes', 'my_override_function' ); function my_override_function ($classes) {
$classes = 'btn-big';
return $classes;
}
“poka_affiliate_button”
You can use this filter to alter the html structure of the affiliate’s button or append something after the end.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_button', 'my_override_function' ); function my_override_function ($btn) {
$btn = '<a href="#">This is my custom Affiliate button</a>' ; return $btn;
}
“poka_review_single_button_classes”
You can use this filter to alter the single review’s button classes or add some more.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_review_single_button_classes', 'my_override_function' );
function my_override_function ($classes) {
$classes = 'btn-uppercase btn-red' ; return $classes;
}
“poka_review_single_button”
You can use this filter to alter the single review’s button html structure or append something in the end.
You can find this filter in inc/core/helpers-affiliates.php
add_filter ( 'poka_review_single_button', 'my_override_function' ); function my_override_function ($link) {
$link = '<a href="#">This is my custom Single Review button</a>' ; return $link;
}
“poka_affiliate_tag”
You can use this filter to alter affiliate’s tag html structure or append something in the end.
You can find this filter in inc/core/helpers-affiliates.php
add_filter ( 'poka_affiliate_tag' , 'my_override_function' );
function my_override_function ($tag) {
$tag .= '<h6>Content After Affiliate Tag </h6>' ;
return $tag;
}
“poka_affiliate_rating_half_icon”
Use this filter to disable the default half star icon used in the theme.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_rating_half_icon', false );
“poka_affiliate_rating_html”
You can use this hook to alter the HTML of review rating or append something in the end.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_rating_html', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Review Rating</h5></div>' ; return $html;
}
“poka_affiliate_rating_icons”
Use this filter to override the rating icons default arguments array.
You can find this filter in inc/core/helpers-affiliates.php
Example Snippet:
add_filter ( 'poka_affiliate_rating_icons' , 'my_override_function' );
function my_override_function ($rating_icons) {
$rating_icons[ 'full-star' ] = '<i class="custom-star"></i>' ;
return $rating_icons;
}
“poka_custom_logo_width”
Use this filter to override the logo’s width.
You can find this filter in inc/core/setup-theme.php
Example Snippet:
add_filter ( 'poka_custom_logo_width', 'my_override_function' );
function my_override_function () {
return 380;
}
“poka_custom_logo_height”
Use this filter to override the logo’s height.
You can find this filter in inc/core/setup-theme.php
Example Snippet:
add_filter ( 'poka_custom_logo_height', 'my_override_function' );
function my_override_function () {
return 40;
}
“poka_static_version”
You can use this filter to override the version of static files used by poka in enqueue styles and scripts.
For example when making changes the following example is useful in order all the static files to get a different version in each page load.
You can find this filter in inc/core/setup-theme.php You can find this filter in inc/gutenberg/gutenberg.php
Example Snippet:
add_filter ( 'poka_static_version' , 'my_override_function' ); function my_override_function () {
return time() ;
}
“poka_default_css_vars”
Use this filter to override the css vars default arguments array.
You can find this filter in inc/customizer/customizer-functions.php
Example Snippet:
add_filter ( 'poka_default_css_vars' , 'my_override_function' );
function my_override_function ($defaults) {
$defaults['fonts-base-font-size'] = '20' ; return $defaults;
}
“poka_print_css_vars”
You can use this filter to add or edit the print css vars.
You can find this filter in inc/customizer/customizer-functions.php
Example Snippet:
add_filter ( 'poka_print_css_vars' , 'my_override_function' );
function my_override_function ($defaults) {
if ( get_theme_mod( 'colors-boxes-secondary-background-color' ) ) {
$output .= esc_attr( '--boxes-secondary-background-color:' . get_theme_mod( 'colors-boxes-secondary-background-color' ) . ';' ) . PHP_EOL;
}
}
“poka_metabox_render_empty_groups”
You can use this filter to set if you want to render empty metaboxes.
You can find this filter in inc/metabox/group.php
Example Snippet:
add_filter ( 'poka_metabox_render_empty_groups' , 'my_override_function' );
function my_override_function () {
return true;
}
“poka_metabox_register_group”
You can use this filter to register your own metaboxes.
“poka_metabox_prefix”
Use this filter if you want to change the prefix with which metaboxes are stored in the database.
“poka_affiliates_featured_default_atts”
You can use this filter to override the PokaTheme Featured Affiliates shortcode’s default arguments array.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_featured_default_atts' , 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['featured_title'] = 'Top bookmakers';
return $default_atts;
}
“poka_affiliates_featured_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Featured Affiliates shortcode or append something in the end.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_featured_html_output' , 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After PokaTheme Featured Affiliates</h5></div>';
return $html;
}
“poka_affiliates_search_default_atts”
You can use this filter to override the PokaTheme Affiliates Search shortcode’s default arguments array.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_search_default_atts' , 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['placeholder'] = 'Search affiliates reviews ...';
return $default_atts;
}
“poka_affiliates_search_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Affiliates Search shortcode or append something in the end.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_search_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Affiliates Search</h5></div>';
return $html;
}
“poka_affiliates_single_default_atts”
You can use this filter to override the PokaTheme Single Affiliate shortcode’s default arguments array.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_single_default_atts' , 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['id'] = '45';
return $default_atts;
}
“poka_affiliates_single_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Single Affiliate shortcode or append something in the end.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_single_html_output' 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Single Affiliate</h5></div>';
return $html;
}
“poka_affiliates_table_default_atts”
You can use this filter to override the PokaTheme Affiliates Table shortcode’s default arguments array.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_table_default_atts' , 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['num'] = '10';
return $default_atts;
}
“poka_affiliates_table_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Affiliates Table shortcode or append something in the end.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_table_html_output' , 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Affiliates Table</h5></div>';
return $html;
}
“poka_affiliates_list_default_atts”
You can use this filter to override the PokaTheme Affiliates List shortcode’s default arguments array.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_list_default_atts' , 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['columns'] = '3';
return $default_atts;
}
“poka_affiliates_list_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Affiliates List shortcode or append something in the end.
You can find this filter in inc/shortcodes/affiliates-shortcodes.php
Example Snippet:
add_filter ( 'poka_affiliates_list_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Affiliates List</h5></div>';
return $html;
}
“poka_posts_list_default_atts”
You can use this filter to override the PokaTheme Posts List shortcode’s default arguments array.
You can find this filter in inc/shortcodes/post-shortcodes.php
Example Snippet:
add_filter ( 'poka_posts_list_default_atts' , 'my_override_function' );
function my_override_function () {
$default_atts['ajax_load_more'] = 'true';
return $default_atts;
}
“poka_posts_list_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Posts List shortcode or append something in the end.
You can find this filter in inc/shortcodes/post-shortcodes.php
Example Snippet:
add_filter ( 'poka_posts_list_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Posts List</h5></div>';
return $html;
}
“poka_btn_default_atts”
You can use this filter to override the PokaTheme Button shortcode’s default arguments array.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ( 'poka_btn_default_atts', 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['btn_size'] = 'small';
return $default_atts;
}
“poka_btn_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Button shortcode or append something in the end.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ('poka_btn_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Button</h5></div>';
return $html;
}
“poka_box_text_default_atts”
You can use this filter to override the PokaTheme Box Text shortcode’s default arguments array.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ( 'poka_box_text_default_atts', 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['title'] = 'Box Text Default Title;
return $default_atts;
}
“poka_box_text_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Box Text shortcode or append something in the end.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ('poka_box_text_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Box Text</h5></div>';
return $html;
}
“poka_social_links_html_output”
You can use this filter to edit the HTML structure of the PokaThemes social links or append something in the end. Social links appear in header and footer.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ('poka_social_links_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Social icons</h5></div>';
return $html;
}
“poka_carousel_default_atts”
You can use this filter to override the PokaTheme Carousel shortcode’s default arguments array.
You can find this filter in inc/shortcodes/various-shortcodes.php
Example Snippet:
add_filter ( 'poka_carousel_default_atts', 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts[style] = '1';
$default_atts[type] = '2';
return $default_atts;
}
“poka_featured_videos_atts”
You can use this filter to override the PokaTheme Featured Videos shortcode’s default arguments array.
You can find this filter in inc/shortcodes/video-shortcodes.php
Example Snippet:
add_filter ( 'poka_featured_videos_atts', 'my_override_function' );
function my_override_function ($default_atts) {
$default_atts['cat'] = '125';
$default_atts['ids'] = '2';
return $default_atts;
}
“poka_featured_videos_html_output”
You can use this filter to edit the HTML structure of the PokaTheme Featured Videos or append something in the end. Social links appear in header and footer.
You can find this filter in inc/shortcodes/video-shortcodes.php
Example Snippet:
add_filter ('poka_featured_videos_html_output', 'my_override_function' );
function my_override_function ($html) {
$html .= '<div><h5>Content After Poka Theme Featured Videos</h5></div>';
return $html;
}
Actions
“poka_before_main”
You can use this to add custom HTML elements at the start of the document. Also you can remove attached elements in this action. (For example the breadcrumbs and banners)
Example Snippet:
add_action( 'poka_before_main', 'poka_before_content', 5, 0 );
function poka_before_content() {
echo '<h1>Custom Title</h1>';
}
“poka_after_main”
Same as above, you can use this to add/remove blocks of code after the page main content. Example Snippet:
add_action( 'poka_after_main', 'poka_after_content', 4, 0 );
function poka_after_content() {
echo '<h1>Custom Title</h1>';
}
“poka_after_arhives”
You can use this to add custom HTML elements at the end specific documents.
You can find this filter in inc/templates/affiliates/affiliates-taxonomy.php You can find this filter in inc/templates/posts/post-atchive-style1.php You can find this filter in inc/templates/posts/post-atchive-style2.php
add_action( 'poka_after_arhives', 'poka_after_arhives', 5, 0 );
function poka_after_arhives() {
echo '<h1>Content after archives</h1>';
}
Added in v5
poka_after_bonus_archive : after the content of a bonus-type archive.
poka_after_comparison : after a head-to-head comparison page.
poka_after_country : after a country landing page.
poka_after_author : after an author profile.
poka_deprecated : fires whenever something reaches the v4 compatibility layer. Hook it if you want to find every place your own code is still using an old name – it is the cheapest way to audit a child theme before 6.0.
Poka Geolocation
Overview
Poka Geolocation is built into PokaTheme v4 and later — there is no separate plugin to install. It provides IP geolocation detection tools and various shortcodes, functions, hooks and features. One of them is the ability to mark each review with the countries it is allowed and disallowed in, and to show visitors only the operators available in their own This feature gives you the opportunity to select the allowed and disallowed countries for each affiliate. To make that happen first you must check the Enable Geolocation option in the review’s page and then set the allowed and disallowed
countries. Poka Geolocation will display the current country’s flag above the affiliate’s logo alongside with a check or x icon depending on the countries state.
Activation
Go to Customize > Theme Settings > General and check the “Enable Geolocation” option.
Installation
Poka Geolocation uses Maxmind’s GEOLite2 Database which requires a license key. You can acquire one for free:
-
Go to GEOLite2 site and click sign up.
-
Once you’ve set up an account, login to your account portal and click “Manage License Keys” under Services.
- Click “Generate new license key” and copy the new license key.
- Go to the Poka Geolocation settings page and paste the license key.
Database
Poka Geolocation uses the MaxMind GEOLite2 Database. In order to keep the geo location detection accuracy as high as possible, this database needs to be updated frequently. You can update the database manually or let the plugin do it automatically for you.
Manual update
You can update the database manually through the admin settings page.
Automatic updates
You can enable automatic updates by checking the “Automatic Updates” option. You can also choose the interval.
It is recommended to automatically update the database at least once weekly.
Cache
Geolocation cache will store the detected country until the session is over.
You can enable/disable or clear the cache from Poka Geolocation > Settings > Cache
Options
Add a country specific CSS class to the <body>
If set to true it will add 3 classes to the <body> element.
Example
geoloc-enabled
geoloc-country-code-gr geoloc-country-name-greece
Load country flag icons CSS
If set to true it will load a css file with flag classes.
Example
<span class="flag-icon flag-icon-gr"></span> <span class="flag-icon flag-icon-gr flag-icon-squared"></span>
Important! Disable this if you don’t need css classes for flag icons (improves page load time)
Notifications
Set the default attribute values for the [pokageo_notification] shortcode. Use {{country}} to display the user’s country name.
Shortcodes
Poka Geolocation offers a variety of shortcodes.
Every geolocation shortcode has two spellings
All eight are registered twice, once with underscores and once with hyphens, and the two are the same shortcode. [pokageo_show] and [pokageo-show] do exactly the same thing, and so do the other seven pairs:
[pokageo_show] / [pokageo-show]
[pokageo_hide] / [pokageo-hide]
[pokageo_country] / [pokageo-country]
[pokageo_country_code] / [pokageo-country-code]
[pokageo_notification] / [pokageo-notification]
[pokageo_allowed_countries] / [pokageo-allowed-countries]
[pokageo_disallowed_countries] / [pokageo-disallowed-countries]
[pokageo_all_countries] / [pokageo-all-countries]
The underscore spelling is the one used below and the one to use in new content. The hyphen spelling exists because older content and some demos use it, and removing it would break those pages.
[pokageo_show codes=””]
Show content only for specific countries
Attributes
codes: Country ISO Codes separated by commas.
Example
[pokageo_show codes=”EN,GR”] lorem ipsum [/pokageo_show]
[pokageo_country]
Display detected country’s name.
[pokageo_notification flag=”” content=”” default=””]
Display a notification showing if the current post is available in the visitor’s country or not.
Attributes
flag : Whether it should display a flag icon or not (default: true)
content : The content for allowed countries.
default : The default content for disallowed countries.
Inside content and default text “{{country}}” will be automatically replaced by the visitor’s country name.
Example
[pokageo_notification flag=”false” content=”Users from {{country}} are accepted” default=”Users from {{country}} are not accepted”]
[pokageo_disallowed_countries format=”” separator=”” list_class=”” list_item_class=”” codes=””]
Get a list of all the disallowed countries for the current post in various formats.
Attributes
format : [string | list] The display format (default: string).
separator : String separator for countries. This is used when the format is string. (default: “, ”). list_class : A custom css class for the ul element. This is used when the format is list. list_item_class : A custom css class for the li elements. This is used when the format is list.
codes : By default the country names will be used. Set this true if you need the country ISO Codes instead. (default: false).
Example
[pokageo_disallowed_countries format=”list” list_class=”countries-list”]
[pokageo_hide codes=””]
Hide content for specific countries.
codes : Country ISO Codes separated by commas.
Example
[pokageo_hide codes=”EN,GR”] lorem ipsum [/pokageo_hide][pokageo_country_code]
Display detected country’s ISO Code.
[pokageo_allowed_countries format=”” separator=”” list_class=”” list_item_class=”” codes=””]
Get a list of all the allowed countries for the current post in various formats.
Attributes
format : [string | list] The display format (default: string).
separator : String separator for countries. This is used when the format is string. (default: “, ”). list_class : A custom css class for the ul element. This is used when the format is list. list_item_class : A custom css class for the li elements. This is used when the format is list.
codes : By default the country names will be used. Set this true if you need the country ISO Codes instead. (default: false).
Example
[pokageo_allowed_countries format=”list” list_class=”countries-list”]
[pokageo_all_countries format=”” separator=”” list_class=”” list_item_class=”” select_name=”” codes=””]
Get a list of all the allowed countries for the current post in various formats.
Attributes
format : [string | list | select] The display format (default: string).
separator : String separator for countries. This is used when the format is string. (default: “, ”). list_class : A custom css class for the ul or select element. This is used when the format is list or select. list_item_class : A custom css class for the li elements. This is used when the format is list.
select_name : The name attribute value for the select element. This is used when the format is select. (default: countries_list).
codes : By default the country names will be used. Set this true if you need the country ISO Codes instead. (default: false).
Example
[pokageo_all_countries format=”select” list_class=”countries-input”]
Functions
pokageo_detect_country_name()
Detects and returns the country name for current IP.
pokageo_get_country_flag_icon($country_code, $square)
Returns the SVG URL of a country flag by country ISO Code.
Attributes
$country_name : [string] The country ISO Code, e.g. EN (default: current visitor’s country)
$square : [bool] True for square flag icon, false for wide flag icon
pokageo_validate_ip($ip)
Checks if a string is a valid IPv4 or IPv6.
Attributes
$ip : [string] The IP.
pokageo_get_post_disallowed_countries($post_id)
Returns all the selected disallowed countries of a post.
Attributes
$post_id : [string] The post’s ID.
pokageo_is_country_allowed_for_post($post_id, $country_code)
Checks if a country is allowed for a specific post.
Attributes
$post_id : [string] The post’s ID.
$country_code : [string] The country ISO Code, e.g. EN (default: current visitor’s country)
pokageo_detect_country_code()
Detects and returns the country ISO Code for current IP.
pokageo_get_client_ip()
Returns the client’s IP.
pokageo_get_post_allowed_countries($post_id)
Returns all the selected allowed countries of a post.
Attributes
$post_id : [string] The post’s ID.
pokageo_get_all_countries()
Returns all the countries in an associative array with codes as keys and names as values.
pokageo_build_meta_query($post_type, $defaults)
Builds the meta query for WP_Query including only posts from allowed countries.
$post_type : [string] Query’s post type (default: ‘post’).
$defaults: [array] The meta query array. (default: empty array)
pokageo_get_post_types()
Return all Poka Geolocation enabled post types.
poka_set_field( $field, $value, $post_id = null, $is_taxonomy = false )
This function facilitates the update of field values within a metabox by the meta value linked to a specified field in a post or term.
Hooks
pokageo_query_args [filter]
Filters the WP_Query args and inserts the geolocation meta query. Use this if you need to query posts from allowed countries. If a meta query already exists, the geolocation meta query will be appended.
Important! Make sure $query_args contains post_type before you use apply_filters, otherwise post will be assumed.
pokageo_countries_map [filter]
Use this filter to remove or add additional countries to the internal Geomap Provider.
pokageo_post_types [filter]
Use this filter to remove or add additional post types and specify in which post types you want to use Poka Geolocation.
poka_affiliate_single_style_1_row_class[filter]
Utilize this filter to modify classes in Review Style 1. You have the ability to swipe to adjust the position of the sticky bar.
poka_affiliate_single_style_3_row_class[filter]
Utilize this filter to modify classes in Review Style 3. You have the ability to swipe to adjust the position of the sticky bar.
pokageo_loaded [action]
Fires when Poka Geolocation and all WordPress plugins are loaded.
pokageo_before_init [action]
Fires before Poka Geolocation initiazation.
pokageo_after_init [action]
Fires after Poka Geolocation initiazation.
Optional
Frontend CSS
You can disable the frontend css if you are going to add custom stylings on your theme’s CSS.
Less unused css usually means better pagespeed. Just include this filter inside your theme’s functions.php file: add_filter(‘pokageo_load_css’, ‘__return_false’);
Translation
Poka Geolocation uses WordPress official translations management system using PO/MO files and if you want to completely translate this plugin to a different language this is the way to go.
Templates
You can override some templates if you place the corresponding template file inside
%themepath%/wp-content/pugins/poka-geolocation/templates/. This works for both parent and child themes. Some templates may have available data. You can access them through the $data object.
Below is a list of overridable templates:
notification.php
This template is used by the [pokageo_notification] shortcode.
Available Data
flag : [string: true/false] Whether it should display a flag icon or not (default: true)
content : The content for allowed countries.
default : The default content for disallowed countries.
Slots Launch Plugin
Earn the attention of your website’s visitors and offer free slots games.
Initial Process
After creating the account on Slots Launch, we have to whitelist our domain.
Just enter your domain name, ‘without https://’. For example: www.mywebsite.com.
Now, copy and keep somewhere the API key.
Installing WordPress plugin
- Install and activate Slots Launch plugin.
- If it’s the first time you install the plugin you will get a wizard welcome page where you need to paste the key obtained in the first step.
- The “Import Games” is the last step which will simply trigger the slots import. On this screen you can choose to import all games or only some games from some providers.Note: It is important to install all games and then hiding some providers from results, if you install only some providers you will need to delete all the data in case you want to install more in the future.This process takes around 10 to 15 minutes and it’s triggered with the visits to your site. You will get a notification once the import finishes.
From now on, you may find a Slot, and put it anywhere on your website, using the embed shortcode:
How to implement this shortcode? Find the block name shortcode and put this embed code inside:
- You are ready to create your “Slots Archives” page. You can do this by pasting [slotsl-game-archives] shortcode into any page of your site. All the slots will be shown on this page with pagination and search form.
Shortcodes
– Slots Archives
Main shortcode to display slots on your site.
[slotsl-game-archives provider="" show_header="" show_button="" per_page="52" show_pagination=""]
- provider: Pass a provider slug such as “playnova” to display only slots of that provider. Separate multiple provider by comma to show more than one
- show_header: Set to false to hide the header (search, providers, and sorting)
- show_button: Set to false to hide the “Try demo button” overlay
- per_page: Set the number of slots to show per page
- show_pagination: Set to false to hide the pagination
– Providers Archives
Shortcode to show a list of providers and the number of slots of each one
[slotsl-provider-archives slots_url="https://yourdomain.com/slots" provider=""]
- slots_url: Mandatory field where you need to type your “Games Archives Page” url. Basically, the url where [slotsl-game-archives] shortcode is placed.
- provider: Pass some provider slugs such as “playnova,ainsworth” to display only those provider or leave empty to show them all
How to use Direct Embeds
You can get direct embeds URLs from any of the game pages in the Launch Pad or from the API results. To use those URLs on an iframe you just need to include your token, for example “12345abcd”, like this:
<iframe src="https://slotslaunch.com/iframe/5148?token=12345abcd" width="100%" height="600px"></iframe>
Note: Every time a game is loaded it will count as one request toward your quota. We do recommend adding a launch game screen as we did on our WordPress Plugin to save requests and make pages load faster for crawlers.
Find the block name HTML and add the above iframe with your token.
It’s forbidden to bypass this URL and try to obtain the final game URL, you will be banned from Slots Launch services.