Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Thread Starter seo90

    (@seo90)

    No, my problem is that what I mark with the red arrow disappears when I upgrade to the latest version of wordpress.

    I solved it by creating the option again by myself in the block image.

    I think the option has been removed completely, I guess few people use the option.

    • This reply was modified 1 year, 2 months ago by seo90.
    Thread Starter seo90

    (@seo90)

    if I remove this from the field:

    filetypes:jpg|png|heic

    works, so I’ll do it like this.

    although I would like that you can only send me images and without adding that according to the code of your plugin you can send me audios, videos and images:

    $type = array( 'audio/*', 'video/*', 'image/*' );

    Thread Starter seo90

    (@seo90)

    curiously, when I attach a heic image from the computer it works, on iphone it tells me that the extension is not supported.

    Thread Starter seo90

    (@seo90)

    Okay, I was wrong. The problem is the HEIC extension of iphone… When you take a picture in iphone it has the HEIC format, an apple format and even though in the field I add the heic format:

    [file* file-1 filetypes:jpg|png|heic limit:10000000 id:file-1]

    it tells me that it is not supported… But, then, nobody can send me photos made with iphone, since all of them have that format. Can you give me a solution? I leave you a web with an installation from 0 where the same thing happens

    https://ed-caracal-xiru.instawp.xyz/contact/

    Thread Starter seo90

    (@seo90)

    I use the chrome browser on my computer and on my iphone.

    also does not work in safari

    • This reply was modified 1 year, 10 months ago by seo90.
    Thread Starter seo90

    (@seo90)

    I have already discovered the bug… If wordpress is in English, it works perfectly, if it is in Spanish, it fails.

    Content-Disposition: attachment; is being translated to Spanish as “Disposición de contenido: adjunto;” and then it makes the server error…

    Thread Starter seo90

    (@seo90)

    I forgot to comment that this does not happen in the HTML version, only in the AMP version and on iphone (chrome/safari), I have not tested on android.

    Thread Starter seo90

    (@seo90)

    I see that I can’t use inverted commas as that’s what the forum uses to add code… I’ve posted it in pastebin

    https://pastebin.com/vDN41a91

    Forum: Plugins
    In reply to: [AMP] Optimize AMP
    Thread Starter seo90

    (@seo90)

    everything is ok. But, the font I use is hosted on my server. I just want to be able to insert

    <link rel=”preload” as=”font” href=”<?php echo esc_url( get_template_directory_uri().’/assets/fonts/mulish.woff2′ ); ?>” type=”font/woff2″ crossorigin=”anonymous”>

    Further up in the head… In the AMP documentation it says to put it after meta charset and meta viewport. I can’t manage to put it there… I have edited the header.php of my theme leaving it like this:

    <!doctype html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="preload" as="font" href="<?php echo esc_url( get_template_directory_uri().'/assets/fonts/mulish.woff2' ); ?>" type="font/woff2" crossorigin="anonymous">
    <link rel="profile" href="https://gmpg.org/xfn/11">
    <meta name="amp-consent-blocking" content="amp-analytics,amp-ad" />
    <?php wp_head(); ?>
    </head>

    And the AMP plugin moves the preload link of the source code. I also tried with add_action wp_head with priority of -9999, 1, etc… And it always inserts it too low. How can I put it at the top after the meta charset and meta viewport in the html of the page?

    • This reply was modified 2 years, 12 months ago by seo90.
    • This reply was modified 2 years, 12 months ago by seo90.
    Thread Starter seo90

    (@seo90)

    Ok, it looks like I still had to check the AMP option even if I didn’t put any AMP incompatible code, it works now. Thank you.

    Thread Starter seo90

    (@seo90)

    I am only placing a text with “hello” there is no code that is not compatible with amp.

    Thread Starter seo90

    (@seo90)

    I just solved the box shadow by putting it like this:

    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1)

    but I don’t understand why it doesn’t work as I had it if the amp is valid and it also works without the plugin.

    Oh, thank you, that was it. Lol… I’ve been doing this for days and look how simple it was.

    But in your code I saw the following, includes/MslsBlogCollection.php:

    	public function get_filtered( $filter = false ) {
    		if ( ! $filter && $this->current_blog_output ) {
    			return $this->get_objects();
    		}
    
    		return $this->get();
    	}

    If $filter was supposed to be false, it should be executed.

    return $this->get_objects();

    And this does show all, including the current language… but it does not work, I must modify it this way:

    	public function get_filtered( $filter = false ) {
    		if ( $filter == false ) {
    			return $this->get_objects();
    		}
    
    		return $this->get();
    	}

    And use

    $links = ( new MslsOutput() )->get( 0, false );
    
    print_r($links);

    With this it does show all the languages… But I don’t want to modify the code of your plugin and then I would lose the changes once updated. Could you fix it in the next version, please?

    It seems that you had it in your code but it should not work, since there is a class css that is added to the current language “current_language” but never shows the current language… So I figured it was a bug

    					$arr[] = sprintf(
    						'<a href="%s" title="%s"%s>%s</a>',
    						$url,
    						$link->txt,
    						( $current ? ' class="current_language"' : '' ),
    						$link
    					);

    Thanks.

    Hello, Dennis.

    I’ve been trying for days to have an array with the language + link but including the current language, i.e. if I’m in the Italian wordpress, it only shows me the US and Russian wordpress, but not the Italian… How can I make it even show me the current?

    Thanks.

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