WordPress.org

Forums

Ceceppa Multilingua
Append breaks the head (5 posts)

  1. Wenci
    Member
    Posted 1 year ago #

    Hi,
    first let me thank you for the awesome work with this free plugin.
    Second, i m using append to show the language menu to a div i want but it breaks the <head>; when i inspect the code i see the code below the ceceppa plugin code get out of the <head> tag.

    Can you make a simple php require function to include to the code whereever we wants?
    Or can you move the <div> with the flags before the closing body so it doesn't break the head?

    i ll post screenshot soon

    All the best, W

    https://wordpress.org/plugins/ceceppa-multilingua/

  2. Wenci
    Member
    Posted 1 year ago #

    http://it.tinypic.com?ref=15q5ann

    here in the first image you can see the google inspector that read the code inside the body while here in this second link the source code view you can see the code before the jquery apply and is rendered in the head

    <img src="http://i58.tinypic.com/107mjpy.jpg" border="0" alt="Image and video hosting by TinyPic">

    The require function could work really well if a php template is used as the append function can give problems with old browser like ie8 or else, it would be easier to place the flags server side and not to move em from the head

    thanks four your time

  3. Alessandro Senese
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    thanks for report..
    In 1.4 I'll move the append from header to footer..

    it would be easier to place the flags server side and not to move em from the head

    not really, because with jQuery I can append flag anywhere, from server side I can do only in post content, otherwise I should grab all output, append flags and print it.. not very easy and convenient to do...

  4. Wenci
    Member
    Posted 1 year ago #

    Yes you are definetly right :) thanks for your help.

  5. Alessandro Senese
    Member
    Plugin Author

    Posted 1 year ago #

    You're welcome :)

    I released version 1.4 and moved "append method" to footer :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.