Title: Problem with hard codes element.style {
Last modified: August 21, 2016

---

# Problem with hard codes element.style {

 *  Resolved [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/)
 * I have a problem with Event Manger and the shown Google Maps. Please have a look
   at this example:
    [http://oldtimer-veranstaltung.de/kalender/termine/maitour-in-die-pfalz/](http://oldtimer-veranstaltung.de/kalender/termine/maitour-in-die-pfalz/)
 * You see in the map a “grey shadow” and “broken lines” in the detail section.
 * Firebug shows this for the “grey section”:
 * element.style {
    -moz-user-select: none; border: 0 none; height: 370px; left:-
   14px; margin: 0; padding: 0; position: absolute; top: -310px; width: 1144px;
 * If I delete “-” in “top: -310px;” the wrong shadow is away!
 * An the style for the broken lines are this:
 * element.style {
    -moz-user-select: none; border: 0 none; height: 786px; left:
   0; margin: 0; padding: 0; position: absolute; top: -691px; width: 690px;
 * If I delete “-” in “top: -691px;” the broken line is away and then ok!
 * In which modul (*.js or *.php)you generate the element style hard code?
 * That is not a good way to program.
 * Thanke for help.
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683651)
 * hi,
 * how about if you preview using default theme twenty twelve just to narrow down
   the problem?
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683667)
 * Agelonwl,
 * I have test the site with WP theme “twenty twelve” with “Live Preview”.
 * I have and I get with firebug this element.style for the grey section:
 * element.style {
    -moz-user-select: none; border: 0 none; height: 370px; left:-
   14px; margin: 0; padding: 0; position: absolute; top: -310px; width: 1144px;
 * And the “broken lines” have this element style
 * element.style {
    -moz-user-select: none; border: 0 none; height: 786px; left:
   0; margin: 0; padding: 0; position: absolute; top: -691px; width: 690px;
 * Why you use hard coded element style in *.js oder *.php?
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683668)
 * hmmm, works for me; also, maps are generated by google map api; and you can see
   the template file at wp-content/plugins/events-manager/templates/placeholders/
   locationmap.php
 * btw, can I know your current EM version?
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683670)
 * Hi agelonwl,
 * I use Event Manager Plugin Version 5.3.9
 * [http://oldtimer-veranstaltung.de/kalender/](http://oldtimer-veranstaltung.de/kalender/)
 * and WP FullCalendar 0.8.2:
 * [http://oldtimer-veranstaltung.de/kalender/veranstaltungen/termine-in-kalenderdarstellung/](http://oldtimer-veranstaltung.de/kalender/veranstaltungen/termine-in-kalenderdarstellung/)
 * the problems are “top: -310px;” —> “-” and “top: -691px;” —> “-“
 * If you delete in firebug the “-” all is o.k.!
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683672)
 * just to narrow down the problem; can you try to temporarily deactivate other 
   plugins to check for any conflict?
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683676)
 * Hi agelonwl,
 * I have deactivate one plugin after another and checked the map. The “grey section”
   and “broken links” are every time to see.
 * Please have a look to firebug. If you go to the “grey section” you see a small
   rectangel up and on the broken lines an other small rectangle up.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683718)
 * try deactivating your plugins AND reverting to twentytwelve to rule out possibilities,
   because as you can see, it works under normal circumstances:
 * [http://demo.wp-events-plugin.com/events/neil-young-main/](http://demo.wp-events-plugin.com/events/neil-young-main/)
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683805)
 * Marcus and agelonwl,
 * I have deaktivate all plugins and take the theme twentytwelve as preview.
 * I have the “grey section” and “broken lines”.
 * If you use Firebug you will see on the map more hard coded element “element.sryle”
   features without any display.
 * Sorry, you have many element styles in your *.php and *.js moduls.
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683812)
 * I have Event Mangager installed on my webpage since 3 Versions Event Manger Plugin
   before Version 5.3.9.
 * After installation all works fine. I cann´t remember if the “grey section” and“
   broken line” came with the Version 5.3.9 or before.
 * Is it possible that ar in the updated plugin Event Manager is “old code” which
   is not deleted from the new version?
 * Thank you for help.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683822)
 * I’d say try actually switching your theme too, not sure if preview removes all
   use of any custom css/code.
 * what you suspect could be the case, i.e. a file didn’t get overwritten (although
   we haven’t made changes to map css in a long while) the other alternative is 
   to try reinstalling EM, or try installing an older WP theme like twentyeleven,
   in case you made changes to the theme files themselves, including 20 12.
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683824)
 * Marcus, these are very bad ideas:
 * Reinstall EM:
    – What happens with the all custom placements? – What happens 
   with more than 200 events? – What happened with custom widgets
 * If I change to twentyeleven or something else all widgets from theme PIHA (Elmastudio)
   are away.
 * Do you have an idea for a patch to remove “-” in top: -310px; and top: -691px;
 * Please have a look at my first post. Thats all!
 * Thanks for help
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683831)
 * nothing gets deleted unless you click ‘uninstall’ (you’ll also have to confirm
   deleting events etc.), otherwise you can safely delete the events manager plugin
   and install again.
 * widgets should reappear once you install and activate EM again, can’t remember
   for sure but as long as you don’t visit the widgets page, ‘removed’ widgets are
   still remembered.
 * with regards to themes, in recent WP versions your widget settings are saved 
   whilst switching themes (very helpful!).
 * the CSS in your OP is created by Google dynamically, so we can’t change that.
   the root of the problem is something else, given it works on our demo and various
   other sites/themes
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683833)
 * Marcus, I have delete in wp-content/ plugin all from event-manager and have new
   installed Event Mangager V 5.3.9 Nothing has changed at “grey section” and “broken
   lines”.
 * After new installation all widgets and events are okay as before:
 * [http://oldtimer-veranstaltung.de/kalender/termine/pfungstaedter-oldtimertreff/](http://oldtimer-veranstaltung.de/kalender/termine/pfungstaedter-oldtimertreff/)
   or other event
 * I have deleted the background from Theme Piha … nothing has changed.
 * In the browser Chrome I found under element style and the mous over “grey section”
   following:
 * Insdepctor-stylesheet
    .single.single-event.postid-xxx.custom-background.frame
 * Do you have any idea about this?
 *  Thread Starter [mustermann](https://wordpress.org/support/users/mustermann/)
 * (@mustermann)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683834)
 * Marcus, I have resolved the problem “grey section” and “broken line”:
 * Please have a look at configuration Event Manager –> Allgemein –> Performance
   Optimation (beta) –> JS Datei laden begrenzen? –> Yes
 * … no “grey section” and no “broken line” is seen on the event maps:
 * For example: [http://oldtimer-veranstaltung.de/kalender/termine/9-int-oldtimertreffen-fuer-motorrader-und-mopeds/](http://oldtimer-veranstaltung.de/kalender/termine/9-int-oldtimertreffen-fuer-motorrader-und-mopeds/)
 * I don´t understand it, but the experimental change from no to yes works.
 * Thank you for help.
 *  [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * (@angelonwl)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683851)
 * thanks for updating us.

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

The topic ‘Problem with hard codes element.style {’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

 * [hard-code](https://wordpress.org/support/topic-tag/hard-code/)

 * 15 replies
 * 3 participants
 * Last reply from: [agelonwl](https://wordpress.org/support/users/angelonwl/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/problem-with-hard-codes-elementstyle/#post-3683851)
 * Status: resolved