Comments (4)
is_page_template()
should work fine. There's nothing in WP Rig blocking core functions.
I'm working on a tutorial around adding a slideshow to WP Rig.
from wprig.
Hello!
is_page_template is working only if I call the template file from /verbose folder, like:
if ( is_page_template('verbose/page-with-slick.php')) { //slick css wp_register_style( 'wprig-slick', get_theme_file_uri( '/css/slick.css' ), array(), '20180626' ); wp_register_style( 'wprig-slick-theme', get_theme_file_uri( '/css/slick-theme.css' ), array(), '20180626' ); }
Should I reinstall or is normal?
I tried get_page_template_slug(); to see the exact path of template. The result was verbose/page-with-slick.php
thank you
from wprig.
Where are you calling is_page_template()
? These core functions only work after the main WP Query has been loaded.
If you're calling inside the wp_enqueue_scripts
action you should be fine. If you're calling, e.g., inside the init
action, then its too early.
from wprig.
Hi @solarianian! Since we haven't heard from you in a while, we're going to close the issue. Feel free to comment if you want to chat some more.
from wprig.
Related Issues (20)
- Accessibility bug: Hidden site-title and site-description HOT 1
- Accessibility bug: Hidden Asides headings in sidebar.php HOT 3
- Default Font Color on Colored background gutenberg cover HOT 2
- theme.json HOT 1
- Can't extend any core classes HOT 2
- Integrate Theme.Json into WP-Rig HOT 2
- Bug blank page editor with 5.9 .. HOT 4
- Styles task hangs and never seems to complete HOT 1
- Inline SVG undefined properties HOT 1
- Change out colors to use block theme colors HOT 4
- Mobile menu obscures content when toggled off HOT 2
- Running production version changes part of string to 'undefined' HOT 3
- Update Deprecated Node Modules HOT 5
- Help instalation HOT 25
- PHP Fatal error on fresh install (`WP_Rig\WP_Rig\JavaScript\Component`) HOT 1
- Why is it so hard (read impossible) to change the color of the mobile menu toggle? HOT 1
- Upgrade Babel and eslint
- I installed but it stays in scripts HOT 3
- watch process freezes after "Finished 'editorStyles'.... " HOT 2
- mobile menu clickable under text when hamburger menu is folded up HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wprig.