Customization Questions
-
Thanks for the great plugin!
Couple of questions…I see there is a way to include a .css file along with the .php file in the blocks folder inside the theme. However, is there also a way to enqueue a .js file with the block as well?
Also, is there a quick way inside of php to determine if the user is access the block from the preview or from the front end? I know that there is the ability to create a separate preview php file, but the reason I ask is because there may be some cases where I literally only have a slight difference between the preview and live block and it would be nice to be able to write a conditional into the block php rather than copying all of the code and maintaining two separate files.
Thanks,
Wil
- The topic ‘Customization Questions’ is closed to new replies.