• Resolved Neetha

    (@hyp4yog1)


    Hello
    I keep getting this message. I put in the php short code in theme editor when I first installed. And I keep getting this message.

    Your theme needs to be fixed for plugins to work (Especially Floating Social Media Icon). To fix your theme, use the Theme Editor to insert <?php wp_head(); ?> just before the </head> line of your theme’s header.php file. – [If everything is working properly, you can disable this warning at misc page]

    There is issue with this theme for plugins for sure. I could not get Page plugin code of Facebook and Lead Plus plugin also stopped working. I tried magic action box plugin for mail chimp and it stopped displaying the form and only displayed code. Tried form code of mailchimp directly It displays white form with inputfields and no text of the fields.

    I placed link to capture email for mailchimp. Also used contact form to capture emails via contactform builder plugin. So far both are displaying in the footer.

    http://www.ishahatayogala.com

    floater icons are working right now. I am concerned that plugin might stop working. Please suggest. Thanks
    neetha

Viewing 9 replies - 1 through 9 (of 9 total)
  • rdellconsulting

    (@rdellconsulting)

    Raised to Developers

    Thread Starter Neetha

    (@hyp4yog1)

    Thank you. I hope the Developers will take a look and get back.At least the photo gallery plugin seems to hold just fine. Maybe the free version is not paid full attention too.

    Hello,
    thanks for raising this.

    What is this photo gallery plugin you’re talking about?

    Anyway we’ll see if we can reproduce the issue.
    In any case, it must not depend on the reason that warning says.
    There are some plugin which scan a certain file to see if a specific function is called.
    The function wp_head() is correctly called by this theme, exactly in the place where it must be called, inside the <head> tag, just before the </head> closing tag – as that plugin correctly states 😉
    -> https://github.com/presscustomizr/customizr/blob/master/inc/parts/class-header-header_main.php#L132

    The thing is that this theme doesn’t have that code in the header.php template, but in another file which is “called” by the header template.

    This is not wrong at all as long as the wp_head() call is called before the </head>.

    Is just an assumption of that plugin that that code must stay plainly in the header template.

    Hence from that standpoint everything is where it should be. 😉

    It a bug exists is not about that, or maybe that plugin, because of its wrong assumption, stops to work correctly if it doesn’t find things where it thinks they must be (the important thing should be how the html page is built – correctly in this case – and not where..). Or maybe it’s a totally unrelated issue.

    Bests

    Thread Starter Neetha

    (@hyp4yog1)

    Hi Thanks for looking in.

    This is working fine.
    Photo Gallery
    This plugin is a fully responsive gallery plugin with advanced functionality. It allows having different image galleries for your posts and pages. You can create unlimited number of galleries, combine them into albums, and provide descriptions and tags.

    Version 1.2.92 | By WebDorado | View details

    WP Lead Plus Responsive (built widget with optin – with mailchimp HTML form)
    worked for short time but turned into displaying only short code.

    Create your reponsive landing pages, squeeze pages, popup widgets within minutes. Working well on mobile, desktop, tablets

    Version 1.7.9 | By Gato Vago | View details

    Magic Action Box – plugin does not even display the Action boxes after creating a box in the dashboard so there is no way to use this plugin at all

    Magic Action Box

    Install Now
    More Details
    Magic Action Box let’s you display professional looking opt-in forms and feature boxes in your WordPress site.

    By Prosulum, LLC

    This facebook like box also does not display in the dashboard now. Have used this for few months with the other theme. As soon as I installed customizr this fully disappeared from display.
    Facebook Like Box

    Install Now
    More Details
    A widget that displays your Facebook Like Box for Facebook Page.

    By Sayful Islam

    I know that facebook now prefer we use the page plugin code from them. Tried in both footer and sidebar. Footer does not even show. sidebar it just shows the name Isha Hata Yoga LA in a rectangle with no other details.

    I will create mailchimp form again to test in another site where I am using this theme to check issues. Similar issues there too. I will post that site link soon as I get a chance.

    Yes will check the wp_head() before </head>
    neetha

    Thread Starter Neetha

    (@hyp4yog1)

    Hi this is the code in the header editor as it is right now.pasting below.I added just before <?php wp_head(); ?> </header> when I activated this theme. But it does not show. Should I add it and update again?

    <?php
    /**
    * The Header for Customizr.
    *
    * Displays all of the <head> section and everything up till <div id=”main-wrapper”>
    *
    * @package Customizr
    * @since Customizr 1.0
    */
    ?>
    <!DOCTYPE html>
    <!–[if IE 7]>
    <html class=”ie ie7″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if IE 8]>
    <html class=”ie ie8″ <?php language_attributes(); ?>>
    <![endif]–>
    <!–[if !(IE 7) | !(IE 8) ]><!–>
    <html <?php language_attributes(); ?>>
    <!–<![endif]–>
    <?php
    //the ‘__before_body’ hook is used by TC_header_main::$instance->tc_head_display()
    do_action( ‘__before_body’ );
    ?>

    <body <?php body_class(); ?> <?php echo apply_filters(‘tc_body_attributes’ , ‘itemscope itemtype=”http://schema.org/WebPage”&#8216;) ?>>

    <?php do_action( ‘__before_page_wrapper’ ); ?>

    <div id=”tc-page-wrap” class=”<?php echo implode( ” “, apply_filters(‘tc_page_wrap_class’, array() ) ) ?>”>

    <?php do_action( ‘__before_header’ ); ?>

    <header class=”<?php echo implode( ” “, apply_filters(‘tc_header_classes’, array(‘tc-header’ ,’clearfix’, ‘row-fluid’) ) ) ?>” role=”banner”>
    <?php
    // The ‘__header’ hook is used with the following callback functions (ordered by priorities) :
    //TC_header_main::$instance->tc_logo_title_display(), TC_header_main::$instance->tc_tagline_display(), TC_header_main::$instance->tc_navbar_display()
    do_action( ‘__header’ );
    ?>
    </header>
    <?php
    //This hook is used for the slider : TC_slider::$instance->tc_slider_display()
    do_action ( ‘__after_header’ )
    ?>

    As yo can see:

    <?php
    //the '__before_body' hook is used by TC_header_main::$instance->tc_head_display()
    do_action( '__before_body' );
    ?>

    so when this code is executed:
    do_action( '__before_body' );
    these stuff is printed:
    https://github.com/presscustomizr/customizr/blob/master/inc/parts/class-header-header_main.php#L115

    where the wp_head() call is printed before the </head> closing tag.
    It does what it should, placing that where it must be 😉

    It’s just that that plugin expect that call in a certain file, but this is not mandatory, the important thing is that it stays before </head> and of course that the <head>...</head> is well placed inside the html document. And it is 😉

    Bests

    Thread Starter Neetha

    (@hyp4yog1)

    Hi
    Thanks the if its all correct and it won’t cause other issues
    I can leave the plugin or ask my client if she wants to uninstall so that
    there are no issue.

    In text widget I placed both the footer so you can see. But the display is not happening for me to show you. since we can’t attach a screenshot here.
    Oh I can take a screen shot and place it on a page so you can see. Will do, better late then never. As the learning curve goes i guess.

    OK placed the image on contact us page so that you can see left sidebar. There all of them are working.

    Here is the link

    http://www.ishahatayogala.com/contact-us/

    Just saw the page plugin code display after. Scary this back and forth of display and no display. If it stays great.

    Thread Starter Neetha

    (@hyp4yog1)

    Here is the other site I work on but this is just blog. Not using other features and very few plugins involved.

    http://revelationswellnesscenterandacademy.com/blog/meditation-and-chakras/

    Facebook like box and page plugin are working here.
    FB box in the right sidebar is from page plugin
    in the footer is facebook like box.

    WP LEAD PLUS PLUGIN is in footer with mailchimp form its also fine here.
    This is what had also on Isha yoga site but it only displayed shortcode so removed.

    One other thing is happening with the text it is not staying in paragraphs.
    This I don’t think is Theme issue. But any info would be appreciated. Its a lot of work to go back and make paragraphs again.

    It probably PHP or is it java script? Don’t know what languages WordPress uses in total. Thanks.

    Thread Starter Neetha

    (@hyp4yog1)

    Thanks for your time looking at the original question.
    The display issue is strange.
    I guess that won’t be solved in this thread.

    I will probably be changing the theme for revelationswellness blog in case some checks later.

    I had to deactivate floating social icon plugin to change the color in the text as well. It is nice plugin but not mixing well with this theme

    https://wordpress.org/plugins/floating-social-media-icon/

    I will close this topic. Thanks
    neetha

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Theme needs to be fixed for plugins message’ is closed to new replies.