FriendlyHal
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Adjustable shortcode parameterAsked again and found some help
Forum: Fixing WordPress
In reply to: Where to add code to customize a plug-in #easyAsked again and found some help
Forum: Plugins
In reply to: [Easy Popup Announcement] Adjusting the default cssFound help in another forum
Forum: Fixing WordPress
In reply to: Adjusting .php filesWoohoo! Thank you so very much! I realize now I was making that waaay more complicated than it needed to be, haha.
Thank you again, you are a virtuoso!
Forum: Fixing WordPress
In reply to: Adjusting .php filesAll right, I think I got this ??
Hopefully I will tick this thread as resolved here shortly.Forum: Fixing WordPress
In reply to: Adjusting .php filesSo literally just put
$epa_html .= '<p> See? </p>';
for the line and then download a Custom CSS plugin? If so any recommendations for such a plugin?Forum: Fixing WordPress
In reply to: Adjusting .php filesFirst off, thank you for the extremely quick reply. Secondly, I apologize for my ignorance. I’ve tried 20+ different ways to enter “my formatting code” in the line you have pointed out to me as well as trying some different things with the content itself but none of them seem to work. Looking at the source code for the page, none of “my formatting code” seems to be going through. Here are just a few of the ways I’ve tried to give you a sense of what I may be doing wrong.
$epa_html .= '<p> <html> <head> <style type="text/css"> p { ... color: #000000 } </style> </head></p>';
$epa_html .= '<html> <head> <style type="text/css"> p { ... color: #000000 } </style> </head>';
$epa_html .= '<style type="text/css"> p { ... color: #000000 } </style>';
Forum: Fixing WordPress
In reply to: Ads on my websiteSorry, I missed the link. Definitely looks like your host added in some default code to generate that.
Forum: Fixing WordPress
In reply to: Ads on my websiteIt might also be a plug-in you have downloaded. Can you give us any info about the ads themselves? A lot of times it says who generated the ad on the ad itself.
Forum: Fixing WordPress
In reply to: Possible to randomize shortcode parameter?Wooohooo!!!! You did it ?? If Apple hadn’t made such a mockery of the word genius I would call you one, in lieu, you are a virtuoso!
Forum: Fixing WordPress
In reply to: Possible to randomize shortcode parameter?It doesn’t seem to work in my case anyway :/
The plug-in is easy popup announcement, the code for the shortcode is thus:
<?php /* * Shortocode for single post / page */ function epa_setcookie_post() { $epa_expire = get_option( 'epa_expire' ); $expire = time() + (float) $epa_expire; if(isset($_COOKIE['epa_popup'])): else: //$_COOKIE['epa_popup'] = 'active'; setcookie('epa_popup', 'active', $expire); endif; } function epa_shortcode_single( $atts ) { $atts = shortcode_atts( array( 'id' => '' ), $atts ); $default_popup = get_post($atts['id']); if(get_option('epa_enable') == 'no') : $epa_html .= '<div id="my_popup" class="well"><span class="my_popup_close"></span>'; $epa_html .= $default_popup->post_content; $epa_html .= '</div>'; if(!isset($_COOKIE['epa_popup'])) { return $epa_html; } endif; } add_shortcode( 'epapop', 'epa_shortcode_single' );
Forum: Fixing WordPress
In reply to: Possible to randomize shortcode parameter?Thank you for responding ??
As I’m editing the page I can write
[shortcode id = '123']
and it causes a modal popup with the “id” of ‘123’ to appear on the page. If I code[shortcode id = '128']
then instead of popup ‘123’ up comes ‘128’. What I would like to happen is that a random popup appears instead of just the same ‘123’ or ‘128’ popup over and over.Putting
[shortcode id = 'rand("120","130")']
doesn’t fly.Can this only be done by editing the plugins code?
Forum: Fixing WordPress
In reply to: Draft and media updates lostYou’re welcome, glad to help.
Forum: Fixing WordPress
In reply to: Draft and media updates lostHaha, glad you figured it out ??
Don’t forget to mark as resolvedForum: Fixing WordPress
In reply to: Draft and media updates lostI’ve had this happen to me a few times if I’m not paying attention.
WordPress auto-saves for you to some extent if you don’t do it manually and to see the previous revisions there is a line that says “revisions” in a window in the top-right while you’re editing your page. The window is labeled “Publish.” If it’s not there you’re probably out of luck.