missstyles
Forum Replies Created
-
Unfortunately it seems that they’re not quite a html5 placeholder, still some form of javascript is attached which makes them work – if you try to use them outside of the wordpress folder, which I’ve needed to do recently – it still doesn’t work despite the input on the field being placeholder=”placeholder text”.
I think its just a renamed watermark feature that was there before but is more reliable as that often didn’t work
Forum: Plugins
In reply to: [Contact Form 7] Using shortcode in HTML file? Not working<?php require($_SERVER[‘DOCUMENT_ROOT’] . ‘/pathtowordpress/wp-load.php’); ?>
<?php echo do_shortcode( ‘[contact-form-7 id=”1914″ title=”Quote”]’ ); ?>
<?php wp_reset_query(); ?>Forum: Plugins
In reply to: [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)] IE8 IssueHi Robert, Thanks for your help, I’ve left a review in around December time, but thank you for your support!
I’ve been looking for this over the past few days also and decided to take matters into my own hands!
In the plug in folder go to
modules > text.php (for email input and regular text input)
change line
$html = ‘<input type=”text” name=”‘ . $name . ‘” value=”‘ . esc_attr( $value ) . ‘”‘ . $atts . ‘ />’;
to
$html = ‘<input type=”text” name=”‘ . $name . ‘” placeholder=”‘ . esc_attr( $value ) . ‘”‘ . $atts . ‘ />’;
For Placeholders on Text area
modules > textarea.php
line 76 add
if ( $class_att )
$atts .= ‘ placeholder=”‘ . trim( $value ) . ‘”‘;and on line 95 change this:
$html = ‘<textarea name=”‘ . $name . ‘”‘ . $atts . ‘>’ . esc_textarea( $value ) . ‘</textarea>’;
to this
$html = ‘<textarea name=”‘ . $name . ‘”‘ . $atts . ‘></textarea>’;
It will make every “value” you enter in the backend a placeholder so if you solely just need placeholder it works a dream! must be careful not to update the plug in though so isn’t long term ideal!
Hope that helps some people I’ve been searching for a solution for days!
Hi Robert,
Thanks for taking a look at it – its turned more into needing more wordpress features as it’s gone along.
The static contact page just has do shortcode section to get to the files:
<?php require($_SERVER[‘DOCUMENT_ROOT’] . ‘/plant-news/wp-load.php’); ?>
<?php echo do_shortcode( ‘[mapsmarker layer=”1″]’ ); ?>
<?php wp_reset_query(); ?>I may just have to bite the bullet and convert that page into a wordpress page which I was trying to avoid!
Thanks again
Thanks – Can I email the URL and log in details across to you?
Forum: Fixing WordPress
In reply to: Carrying over Form DataStill looking for help?!
Forum: Fixing WordPress
In reply to: How do I disable comment moderation?Go into your discussion settings, un-check author must already have previously approved comment to allow all users to be automatically posted, and add words that you don’t want to be posted in the comment moderation box