Forum Replies Created

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

    (@astromono)

    Just to clarify, I’ve checked my wp-config.php and couldn’t find “define(‘DISALLOW_FILE_EDIT’, true)”.

    The button to copy the email to my theme is missing entirely and I cannot even see the HTML template below the customizable options.

    Thread Starter astromono

    (@astromono)

    Hi, Jarret

    Thanks for your prompt reply! Here’s the screenshot of the customizer as it currently looks. Please note that there are options that the vanilla Twenty Fourteen theme doesn’t have. Those extra options were added by the “Styles: Twenty Fourteen” and “Fourteen Extended” plugins.

    https://snipboard.io/q1X3eI.jpg

    Currently I’ve disabled the Featured Content section of the site altogether, which looks fine, but would be nice to have back if possible.

    Thanks again for your assistance and any help you can provide.

    Cheers,

    Luis

    Thread Starter astromono

    (@astromono)

    Hi, Stanimir

    Thank you so much for clearing this info. I have enabled the footer by testing it with dummy widgets and indeed the lazy load works fine now.

    Thanks again for the quick response and keep up the awesome work!

    Kind regards,

    Luis

    Thread Starter astromono

    (@astromono)

    Hi, Mike!

    Thanks for the quick reply on this. I made the changes you suggested, but found that the issue wasn’t resolved. Instead I got a new error message with line 355 now being the culprit:

    Fatal error: Uncaught TypeError: Argument 2 passed to Mgsisk\Webcomic\Transcribe\hook_get_transcript_title() must be of the type integer, string given, called in /home/astromon/public_html/wp-includes/class-wp-hook.php on line 286 and defined in /home/astromon/public_html/wp-content/plugins/webcomic/lib/transcribe/common.php:366 Stack trace: #0 /home/astromon/public_html/wp-includes/class-wp-hook.php(286): Mgsisk\Webcomic\Transcribe\hook_get_transcript_title('<img class="wpm...', 'wpml-ls-7-es') #1 /home/astromon/public_html/wp-includes/plugin.php(203): WP_Hook->apply_filters('<img class="wpm...', Array) #2 /home/astromon/public_html/wp-includes/class-walker-nav-menu.php(204): apply_filters('the_title', '<img class="wpm...', 'wpml-ls-7-es') #3 /home/astromon/public_html/wp-includes/class-wp-walker.php(145): Walker_Nav_Menu->start_el('<li id="menu-it...', Object(WPML_LS_Menu_Item), 0, Object(stdClass)) #4 /home/astromon/public_html/wp-includes/class-wp-walker.php(243): Walker->display_element(Object(WPML_LS_Menu_Item), Arr in /home/astromon/public_html/wp-content/plugins/webcomic/lib/transcribe/common.php on line 366

    I also tried disabling the Restrict component prior to making the changes in the common.php file, but this didn’t solve the issue either. I hope this information helps in figuring out how to solve it!

    Thanks again for your support!

    Luis

    Thread Starter astromono

    (@astromono)

    Thanks for the prompt reply. I like the idea behind the plugin, but maybe it could be easier for the user to use it. For instance, what if the plugin grabbed the static image preview from youtube itself? I’ll keep testing and writing about what I find.

    This is a great idea tho!

    Thread Starter astromono

    (@astromono)

    Oh wow, thank you so much for such a quick reply, you guys! And thank you, Michael, that was exactly right! (hear me go DO’H and wake my roommates at 1am).

    Thread Starter astromono

    (@astromono)

    Thanks, I can try using it and letting you know, but it will still leave the video embeds looking all weird. Is there any fix for that?

    Thread Starter astromono

    (@astromono)

    Hi! Sure I can, here’s the link to the gist:

    https://gist.github.com/luislandero/3c6e66061074a29b3f032000ca754291

    If you need any additional files or info, please let me know and thank you so much for getting this far with me into resolving this.

    Thread Starter astromono

    (@astromono)

    Hi!

    Thank you for the reply. The value without the if ( is_page_template( 'full-width.php' ) ) is how I initially had it and if you go to this link, we’re right back at the beginning of the issue.

    https://astromono.com/top-10-e3-2015-playstation/

    Setting the content_width that way affects not only the full-width images, but also the images inside tiled galleries and even the preview images in Youtube videos.

    In all fairness, at least Photon is now serving the correct image size in full width, not just serving the resized 948px width version scaled to 1038px.

    Is there a fix?

    Thread Starter astromono

    (@astromono)

    Certainly!

    The parent theme has a $content_width = 474; by default. My child theme’s $content_width is defined as follows:

    if ( ! isset( $content_width ) )
        $content_width = 474;
     
    function astra_adjust_content_width() {
        global $content_width;
     
        if ( is_page_template( 'full-width.php' ) )
            $content_width = 1038;
    }
    add_action( 'template_redirect', 'astra_adjust_content_width' );
    
    add_action( 'after_setup_theme', 'thumbnail_size_tweak', 11 );
    
    function thumbnail_size_tweak() {
        set_post_thumbnail_size( 1038, 572, true );
    }

    The value is for all templates, regardless of whether it’s a page or post.

    The HTML generated by the image in the editor is the following:

    <p class="full-image"><img class="alignnone wp-image-2730 size-full" title="My E3 2015 Top 9: Microsoft" src="https://en.astromono.com/wp-content/uploads/sites/2/2015/06/fortnitebig.jpg" alt="My E3 2015 Top 9: Microsoft" width="1038" height="572" /></p>

    Sorry for the late reply, but I hope this info helps.

    One additional thing I noticed is that, if you inspect the images that appear in the post, you’ll see that the WordPress CDN is serving the images at a max width of 948px for some reason, even though the images themselves are bigger (1038px wide).

    Thread Starter astromono

    (@astromono)

    Quick update. I installed the Fluid Video Embeds plugin and the video issue is now solved, however if you look at full-width template pages, I have full width images being served at the wrong size.

    Here’s an example:

    https://astromono.com/top-10-e3-2015-playstation/

    My $content_width is set at 1038px, but Photon is resizing the image to 948px while still stretching it to fit the 1038px width of the column. If I deactivate Photon, images are served at full size (as they should be), but then I won’t be able to use tiled galleries and they will load slightly slower.

    What’s causing this?

    Thread Starter astromono

    (@astromono)

    Hi, Jeremy!

    Thanks a lot for your reply. I tried the new code and while it does work perfectly for images, my Youtube embeds are still off in that they “hang” from one side as opposed to appearing with 100% column width. Here’s an example:

    https://en.astromono.com/design-focus-guild-01-%e2%80%a2-liberation-maiden/

    I tried editing this behavior with CSS and even though it did get the video to appear with the width of the container (1038px), the video is not responsive as it used to be.

    Thanks again for the awesome suppport!

    Luis

    Thread Starter astromono

    (@astromono)

    Sorry, forgot to say thanks in advance for any help you can provide!

    Luis

    Thread Starter astromono

    (@astromono)

    Just bumping this up. I’m still struggling with it now that I updated to 1.3. Can anyone help me out, please?

    Thread Starter astromono

    (@astromono)

    Still trying. This is my latest attempt, but it doesn’t pull up any posts at all.

    <?php
    /*
    * Template Name: Pateando Calle
    * Description: Page Template for Pateando Calle travel articles.
    */
    
    get_header(); ?>
    
    <div id="main-content" class="main-content">
    
    <?php
    	if ( is_front_page() && twentyfourteen_has_featured_posts() ) {
    		// Include the featured content template.
    		get_template_part( 'featured-content' );
    	}
    ?>
    
    	<div id="primary" class="content-area">
    		<div id="content" class="site-content" role="main">
    
    		<?php
    			if ( have_posts() ) :
    				// Start the Loop.
    				while ( have_posts() ) : the_post();
    
    					/*
    					 * Include the post format-specific template for the content. If you want to
    					 * use this in a child theme, then include a file called called content-___.php
    					 * (where ___ is the post format) and that will be used instead.
    					 */
    					get_template_part( 'content', get_post_format() );
    
    				endwhile;
    
    			endif;
    
    			  $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
    
             $list_of_posts = new WP_Query( 'tag=pateando calle' );
    
            if ( $list_of_posts->have_posts() ) :
    			/* The loop */
    			while ( $list_of_posts->have_posts() ) : $list_of_posts->the_post();
    				// Display content of posts
    				get_template_part( 'content', get_post_format() );
    			endwhile;
    
    				// Previous/next post navigation.
    				twentyfourteen_paging_nav();
    
    			else :
    				// If no content, include the "No posts found" template.
    				get_template_part( 'content', 'none' );
    
    			endif;
    		?>
    
    		</div><!-- #content -->
    	</div><!-- #primary -->
    	<?php get_sidebar( 'content' ); ?>
    </div><!-- #main-content -->
    
    <?php
    get_sidebar();
    get_footer();
Viewing 15 replies - 1 through 15 (of 93 total)