Forum Replies Created

Viewing 15 replies - 406 through 420 (of 459 total)
  • Scott DeLuzio

    (@scottdeluzio)

    Actually, after looking at the theme your site is using, it appears to be a responsive theme – meaning it will shrink/expand/shift menus, etc. to look good no matter the size of the screen it is being viewed on.

    Positioning the box like you are trying to do might look OK on a desktop, but on a phone/tablet, the content is going to be rather tight.

    Could you add these widgets to the area where the tag cloud and comments are? It would avoid messing with the theme and honestly I think it would probably look a little cleaner.

    Scott DeLuzio

    (@scottdeluzio)

    You would probably have to edit your theme, or create a child theme to move this section to where you want it.

    If you aren’t sure how to create a child theme, read this article https://oizuled.com/using-wordpress-child-theme/, which should help get you started.

    Scott DeLuzio

    (@scottdeluzio)

    Could you move the homepage-widgets section inside the wrapper div?
    So, instead of this:

    <div class="wrapper">
    <!-- search bar, main content, secondary-content, footer -->
    </div>
    <!-- other stuff -->
    <aside class="homepage-widgets">
    <!-- widget stuff that's down too far -->
    </aside>

    Try:

    <div class="wrapper">
    <!-- search bar, main content, secondary-content, footer -->
    <aside class="homepage-widgets">
    <!-- widget stuff that's down too far -->
    </aside>
    </div>
    <!-- other stuff -->

    Scott DeLuzio

    (@scottdeluzio)

    First, I think that there are a few problems with the CSS you are using. I don’t know if these fixes will solve the issue you’re talking about or not, but let’s at least fix the easy stuff first.

    header[role=banner], .logo {
    	position: center;
    }

    position should be either static relative absolute fixed or inherit. center is not a valid value for position. If you’re trying to center something horizontally try:

    header[role=banner], .logo {
    	margin-left:auto;
    	margin-right:auto;
    	display: block; /* or whatever width you want */
    }

    Check out https://www.w3.org/Style/Examples/007/center.en.html for more information on centering things.

    Then in your .wrapper, you need a unit after the -1.

    .wrapper {
    	margin: -1; /* px, em? */
    	position: relative;
    	max-width: 45.75em;
    }

    If you post a link to the site where you’re having the issue I can try to take a look at what’s happening on your site.

    Thread Starter Scott DeLuzio

    (@scottdeluzio)

    The more I think of it, the more I agree – as long as there are other plugins out there that can add the tooltip feature, there’s no need to clutter up your plugin’s UI.

    I do think that having the ability to use a shortcode in the pricing table can be extremely useful though. Not just for tooltips, but I’m sure there are plenty of other uses I can’t even think of right now that would be useful.

    Thanks for the update!

    Thread Starter Scott DeLuzio

    (@scottdeluzio)

    The quick fix that I came up with to get the shortcode to work inside the pricing table was to edit wp-content/plugins/easy-pricing-tables/includes/shortcodes.php. Find line 27:

    return dh_ptp_generate_pricing_table($id);

    and replace it with:

    return do_shortcode(dh_ptp_generate_pricing_table($id));

    Although I haven’t tested it, this should also allow any other shortcode to work inside a pricing table.

    Thread Starter Scott DeLuzio

    (@scottdeluzio)

    I was a bit premature with that last post.

    I used the Responsive Mobile-Friendly Tooltip plugin’s [tooltip] shortcode in a pricing table that had not yet gone live on my site. I previewed the pricing table with the [tooltip] shortcode included, and it looks exactly how I would expect it to with the selected text having the relevant tooltip underline, etc.
    For example:

    Some text
    Some more text with a tooltip
    Even more text

    However when I set the pricing table on an actual live page, the tooltip shortcode does not function properly. All I get is the shortcode’s text included in the pricing table.
    For example:

    Some text
    [tooltip tip="Tooltip text describing what this is all about."]Some more text with a tooltip[/tooltip]
    Even more text

    I haven’t been able to figure out why it shows up fine in the preview mode, but not while it’s live on an actual page??

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    I think that is exactly the type of person who this plugin is geared towards. A few basic pieces of information are given that may help quickly troubleshoot some problems, but then the full phpinfo() is also provided, should there be a need for a deeper dive.

    Thanks for the 5-star rating!

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Check out the latest version of the plugin (1.2). I think this is what you were looking for.
    And thanks for the 5 stars!!

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    You’re welcome. Best of luck with your new ads.

    Plugin Author Scott DeLuzio

    (@scottdeluzio)

    Hello,
    I believe the policy from Google that you are referring to is:

    Publishers should never use tricks or deceptive practices in order to trigger accidental clicks on ads. Make sure that your ads are well-placed on your site, away from interactive elements, do not mimic the surrounding content and are not placed under misleading headings.
    Maintain adequate space between the ads and the page controls. For example, on site with games, try to avoid placing ads too close to the game controls. We generally recommend a minimum distance of 150 pixels between the flash player and the ad.

    This plugin will provide you with a shortcode to display an ad block on your page or post. It doesn’t apply any formatting to the ad itself.

    However, since the ad will be displayed using a shortcode, you can (and should) place it anywhere within the body of your page or post that complies with Google’s policies.

    For example, if you have a post with a list of links to other sites that you include an ad on, you should keep it away from the links to discourage accidental clicks on those ads. It is up to you though to choose where in the body of your pages or posts the ads should appear.

    If you have FTP access to edit your .htaccess file, you can try to do something like the third suggestion found here: https://crosstown.coolestguidesontheplanet.com/web-host/23-redirecting-a-web-folder-directory-to-another-in-htaccess
    RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L]

    I think in your case the code would look something like:

    RewriteRule ^blog/(.*)$ /newname/$1 [R=301,NC,L]

    Although your example seems to be using generic directory names, so replace “blog” and “newname” with whatever you’re actual directory names are.

    If you don’t have FTP access, try using one of the htaccess plugins available. https://www.ads-software.com/plugins/search.php?q=htaccess

    There are several 301 redirect plugins out there as well, but I think most require you to specify each individual page redirect. With hundreds of posts, this would get extremely time consuming to set up.

    If you’re not too comfortable with editing the htaccess file, there is a bulk uploader add on for the Simple 301 Redirects plugin. I haven’t personally used the bulk uploader add on, but Simple 301 Redirects is fairly simple to use – I would imagine that the uploader is as well.

    Sorry, more specifically, see this post: https://contactform7.com/selectable-recipient-with-pipes/

    You can use Contact Form 7 to accomplish this.

    You can add Radio Buttons or a Drop Down Menu to your form, and have the result that the user selects populate the “To” email field.

    Thread Starter Scott DeLuzio

    (@scottdeluzio)

    With WP_DEBUG enabled, it looks like there is something going on with the theme’s functions.php and the WP image editor:

    functions.php issue
    Use of undefined constant E_DEPRECATED - assumed 'E_DEPRECATED'...in functions.php

    Fixed this by changing this line:
    error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED & ~ E_USER_NOTICE);

    to

    if(defined('E_DEPRECATED')) {
    			error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~ E_DEPRECATED & ~ E_USER_NOTICE);
    		} else {
    			error_reporting(E_ALL & ~E_STRICT & ~E_NOTICE & ~E_WARNING & ~ E_USER_NOTICE);
    		}

    WP Image Editor Issue

    Catchable fatal error: Object of class WP_Error could not be converted to string...

    The chunk of code it is referring to in my site’s theme is below:

    //function check for WordPress 3.5 wp_get_image_editor
    		if(function_exists('wp_get_image_editor')){
    		$new_img_path = tt_resize_image( $file_path, $width, $height, $crop );
    		}else{
    		$new_img_path = image_resize( $file_path, $width, $height, $crop );
    		}
    
    		$new_img_size = getimagesize( $new_img_path ); //error refers to this line
    		$new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );

    I got the error resolved by changing the URL in a shortcode that displays an image on the homepage. It previously was pointing to the URL on the old server rather than the IP on the new server.

    It doesn’t display the images like it is supposed to, but the page at least loads – I can always replace the shortcode with a direct link to the image.

Viewing 15 replies - 406 through 420 (of 459 total)