Magento theme integration - magento-2.0

Hi I'm trying to figure out theme implementation in Magento. It's my first Magento Community Edition installation and obviously first theme that I try.
The problem I'm ecnoutering is
my footer.phtml in not showing in front-end it showing some default footer .And one more thing, In screensort u'll see the default content is coming i want to disable it "CMS homepage content goes here"
here is file structure:
/var/www/projects/Magento_mag/app/design/frontend/Mypackage/mag/Magento_Theme/templates/html
Here i have created all html files in template. My header and content part is showing in front-end but footer part is not showing
here is screensort and footer html
<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
// #codingStandardsIgnoreFile
?>
<!-- footer container -->
<div class="footer-container">
<div class="footer">
<div class="footerCol">
</div>
<!-- footer botom bar -->
<address class="copyright">
By entering this site, at vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime.
</address>
</div>
</div>
</div>
<!-- white shadow wrapper end here -->
</div>

As I see you have just dumped the theme files in the magento folder but you have not set the demo content of the theme.
If you get the demo content with the theme you just have to read the document which comes with theme and follow the instructions and set the cms page as per requirement.
If the demo content is not provided then you have can disble the cms content on home page from admin panel.
Login in admin panel -> Navigate to cms -> pages -> search for the page which have the content displaying in home page and then disable it.
If you need any other help please let me know. If you can give me access I can have look into it.

Related

tailgateui page doesnt look like as in their website

I am trying to test tailwindui using their free examples.
For example I copy paste the HTML for the page section exampe to a file and open with my chrome
https://tailwindui.com/components/marketing/sections/heroes
It looks completely messed up/massive lines scaled up, pieced are all over, definitely doesn't look like in the web page. What am I missing?
Your Company
Open main menu
Product
Features
Marketplace
Company
Log in
Close main menu
Product
Features
Marketplace
Company
Log in
Data to enrich your
online business
Anim aute id magna aliqua ad ad non deserunt sunt. Qui irure qui lorem cupidatat commodo. Elit sunt amet fugiat veniam occaecat fugiat aliqua.
Get started
Live demo

Gravity form won't display manually

I'm using Gravity Forms with Wordpress, and I got a problem :
When I insert manually a form in a post, it won't display it. Instead I have this :
(...) pariatur. Excepteur sint occaecat cupidatat non proident, sunt in
culpa qui officia deserunt mollit anim id est laborum.
[gravityform id="13" title="true" description="true"]
But, If I embed this form in php, it works perfecty!
gravity_form('13', true, true);
I need manually displaying to work in order to let my client manage his forms as he wants.
Everything is up-to-date, I don't use plugins except Polylang which is not causing conflict regarding the System Status.
Any ideas?
Thanks in advance :)
EDIT :
I was using themosis for this project.
Themosis have a conflict with plugins as Gravity Forms. More info here :)
https://github.com/themosis/framework/issues/220
// Try to add a shortcode in you theme's functions.php file if its the only occurance!
function gravityform_func($atts) {
$args = shortcode_atts( array(
'id' => null,
'title' => true,
'description' => true,
), $atts);
return gravityform($args['id'], $args['title'], $args['description']);
}
add_shortcode('gravityform', 'gravityform_func');
WordPress shortcodes are built in WordPress functionality. If they aren't working there is something else going on with your WordPress install. The first thing to do is to check for possible plugin or theme conflicts.
Activate the default WordPress theme and test to see if the shortcode works
If it does then something in your theme is causing the issue. If it doesn't then:
Deactivate ALL plugins
Activate only Gravity Forms
Test the shortcode
If it works then another plugin is causing the issue.
Activate each plugin one by one
Test the shortcode after each plugin is activated
Also make sure you insert the shortcode in the post editor in HTML mode and then update your page. Shortcodes are native functionality to WordPress so something is preventing WordPress from parsing the shortcode.

How open Wordpress posts in fancy box?

How I can open Wordpress posts in fancy box?
Eg:
Lorem ipsum LINK lorem ipsum.
When I click on LINK - how to open some post in fancybox or other "popup" like Litghbox etc.
You can simply use the thickbox js provided by wordpress for creating fancybox as like :
<?php add_thickbox(); ?>
<div id="my-content-id" style="display:none;">
<p>
This is my hidden content! It will appear in ThickBox when the link is clicked.
</p>
</div>
View my inline content!
For more details, check out here : https://codex.wordpress.org/Javascript_Reference/ThickBox
Edit:
For loading content from another source or site.
<?php add_thickbox(); ?>
View the WordPress Codex!

How to include a html code inside wordpress index.php page

I need to implement html code inside a wordpress index.php page.How to do this?
index.php-Wordpress template
<?php
/**
* The main template file.
*
* This is the most generic template file in a WordPress theme and one of the
* two required files for a theme (the other being style.css).
* It is used to display a page when nothing more specific matches a query.
* For example, it puts together the home page when no home.php file exists.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* #package WordPress
* #subpackage Wp_Bootstrap
* #since Wp Bootstrap 1.0
*/
// Gets header.php
get_header();
get_footer();
?>
Html
<div class="container">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
</div>
It is pretty easy.
// Gets header.php
get_header();
//Start of code as part of answer
?>
<div class="container">
<p>Your text here</p>
</div>
<?php
//end of code as part of answer
get_footer();

">" character when import post from blogger to wordpress

When I import the posts from my blogger account, I get all of posts have ">" character at first.
So example my correct post :
Lorem Ipsum Dolor
This is the post content. Lorem Ipsum Dolor Sit Amet
But, at import result it gets like this :
>Lorem Ipsum Dolor
>
This is the post content. Lorem Ipsum Dolor Sit Amet
I've try with all of my blogs in my blogger account.
I use WP 3.2.1
This was mentioned on the Wordpress.org forums: http://wordpress.org/support/topic/extra-character-on-blogger-import
With a link to this site: http://core.trac.wordpress.org/ticket/13458

Resources