Magento Insert Event Manager Slider Block in CMS page - magento-1.9

I have Magento version 1.9.0.1. And am purchased a template. I purchased the Event Manager extension from FME. It is working for the most part, but one of the features is a slider block that you can put on any CMS page that lists upcoming events.
Slider Block for CMS Page
{{block type="events/spBlock" name="events.block" template="events/spblock.phtml"}}
Copy this code and paste in desired CMS Page (s).
I pasted this in the content section of my home page at the bottom of the content section and nothing shows up.
The extension also says:
Slider Block for Templates
echo Mage::app()->getLayout() ->createBlock('events/spBlock') ->setTemplate('events/spblock.phtml') ->toHtml();
Place this code in desired Template(s) in php tags.
I do not know what they mean by this. Where do I put this? Where in the folder structure? Which Template? What precisely does it mean by PHP tags?

Related

How do i create and link another webpage with Visual Studio Code?

Currently I am following tutorials online that uses 1 index.html file, and 1 app.js file that results in only 1 page. However I would like to have multiple pages, that links back and forth with a click of a button, how do I have multiple pages?
Do I have to code all the pages in the same index.html file? Or do I need to create another html?
Or do I need to create another html?
Yes. Unless you are building a SPA or dynamically generating your HTML with server side code: Each HTML file is a page.
that links back and forth with a click of a button
The <a> element is used to create links between pages.
Other page

Creating a plain html home page AMP with WordPress running the other pages

Gday
I like to know how you would go about creating a home page in plain html and have WordPress run the other pages?
The reason is I’d like to create a solely plain html website but I need WordPress for my contact page it has a large form on it and I use a plugin to generate it and forms are a bit beyond my knowledge at the moment to create a contact page myself.
(I have tried creating a template page but then WordPress adds unnecessary code [from plugins ] and makes the AMP invalid)
Honestly I'd try and keep it self contained in WordPress itself.
If for some reason you really want a separate HTML/PHP Homepage, follow these steps:
Add a my-homepage.php file to your /wp-content/themes/ACTIVE-THEME directory
Inside that file put the following code:
Add a new page (Pages > Add New)
Give it a recognizable name like "My Homepage"
In the "Template" selector on the right hand side, pick "My HTML Homepage" and click Publish
Go to Settings > Reading, change Your homepage displays to A static page and pick the page you just made
Now you can add your own code as you see fit. Nothing "WordPress" related will get loaded or hooked in since there's no functions on that file - so you're free to code HTML (or PHP) to your heart's content.
You can see a bit more indepth answer over on WPSE: https://wordpress.stackexchange.com/questions/296592/how-to-use-custom-html-file-instead-of-wordpress-homepage

How do I change the theme of only one page in WordPress

I have an general education landing page in Wordpress, thats needs a new theme. I want to just change that ONE page but not impact any other page. I have a business premium account with Wordpress. Please help, thank you.
You can't change the theme just in one page. To customize that page you would need to create a custom template by creating a template or a file on your server to only affect that page.
Something like:
Page templates
Or:
page-87.php 87 being the page ID
front-page.phpIf the page you want to costumize is the front page
page-landing.phpIf the name of the page is "landing
This might help: WpBeginner

How to edit WordPress page's html code

I can't get editable html code behind the page. I want to make some changes to the page. Web site is hosted in the remote server. Someone assigned this task. There is empty editor when open edit page as below image.
Also I added plugin and actived it but can't get the result.
The picture you posted is of the WYSIWYG editor, which is only for adding content to the page.
If you want to edit the layout of the page itself you have 2 options -
Minor page edits to appear across all pages on the site - Go to Appearance -> editor -> page.php and then edit the code to suite your needs.
Large page edits to appear on one or two pages -
Get access to the files
Duplicate page.php with a different name
Edit code
When you go to add a new page you should have an option to pick a page template. Choose the page template you just created.
If you know exactly what you are doing, you can use Chrome "Inspect" feature, and change the HTML of the content inside the WordPress WYSIWYG Editor. After injecting your HTML, click Preview or Publish and your changes will be saved correctly.
In WordPress 5.5.3, you should be able to click the three dots on the top right, then select Code editor. Alternatively, press Ctrl+Shift+Alt+M.

squarespace query only for home page

I am using squarespace developer kit and going well. I am wanting to integrate some queries to display some very simple data form my blogs that will appear on my home page ONLY.
Not being very fluent in JSON, I am struggling to implement the query on the home page. I have it set up to display the data from the selected blog but it displays the data through each page.
I only want the data to be visible on the home page at the top. Not in the header but inside where all the content is.
Here is my query that works perfectly well
<squarespace:query collection="feature-articles" limit="10">
<li>
{.repeated section items}
<li>{title}</li>
{.end}
</li>
</squarespace:query>
Can the data be inserted into a code block via the content manager so I can then insert into within the content or am I totally wrong in thinking that.
What I will then do is style/ add or edit the UI of the data into either a carousel or whatever is needed for the project.
I just need to know where to store the query so that it fits in with the content.
Appreciate any time.
Review the following link to see how you can edit a template file, to make different pages use different templates.
http://developers.squarespace.com/template-configuration/
Make a completely custom template just for your homepage then paste you code within your custom .region file as outlin ed in the above guide.
Here is the page about working with template pages:
http://developers.squarespace.com/layouts-regions/
Seeing as you know about , I have a feeling you might already know this, so you might want to be a bit more specific about how your displaying your code and I will gladly update my answer.