Updates from Thorir Show/Hide Comments | Keyboard Shortcuts

  • Thorir 7:51 pm on October 21, 2016 Permalink | Flag unresolved

      Tags: , portability,   

      Content (shortcodes) and portability 

      Hi
      I have a site running on one of your themes that needs to be moved to another theme (not one of yours I’m afraid). There are quite a few shortcodes in use on the site so I was wondering if your shortcode function is based on a plugin, freely or commercially available.
      Editing all the shortcodes to make the content work with a new theme will be quite a bit of work so if there is a plugin available that can handle them it would make the transition much easier.

      (Sent you a mail with this question a few days ago but didn’t get a reply, hence posting it here)

      All the best, Thorir

       
      • Marc (Support-Team) 1:33 pm on October 25, 2016 Permalink | Log in to Reply

        Hi Thorir,

        that’s quite unfortunate. The shortcodes are defined within the themes itself. You’d need to extract the used functions and re-implement them within a child theme.

        Best,
        Marc

    • Thorir 5:43 pm on March 10, 2016 Permalink | Flag unresolved

        Tags: ,   

        Dorayaki and Google Maps (Contact widget) 

        Hi,
        I see there are a few threads on how the map function (for contact widget) in Dorayaki broke when Google changed the maps URLs. Many of those threads are in German, and therefore of limited use to me unfortunately, and I suppose this may be the case for some other users as well.

        So, in case it may be useful, this worked for me:

        Find the adress on Google maps. Choose *Share*, and in the pop–up window, *Embed map*. Copy the iframe link and paste in a text editor. Remove the opening iframe tag, including the first double quote marks. From the last part of the link remove the closing iframe tag, and all the way to the double quote marks before *width*. Like so:

        Original iframe link:

        <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d83998.75769544627!2d2.2775176665087713!3d48.85895068047558!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47e66e1f06e2b70f%3A0x40b82c3688c9460!2sParis%2C+France!5e0!3m2!1sen!2sus!4v1457627309646" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>

        Trim to:

        https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d83998.75769544627!2d2.2775176665087713!3d48.85895068047558!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x47e66e1f06e2b70f%3A0x40b82c3688c9460!2sParis%2C+France!5e0!3m2!1sen!2sus!4v1457627309646

        Now paste the modified iframe link in the contact widget.

        (Mods, if there is a more robust way to do this feel free to delete this thread.)

         
      • Thorir 9:31 am on February 1, 2016 Permalink | Flag unresolved

          Tags: , , , media library   

          Baylys and media library size 

          Hi
          I’m running my site on Baylys, and as it’s an image heavy site the size of it tends to go up quite a bit.

          Wondering if I could ask you for a code snippet for my child theme functions.php that would prevent Baylys from adding an image size for the header (1400×550), as that alone would save me quite a bit of space.

          All the best, Thorir

           
          • Thorir 10:28 am on February 1, 2016 Permalink | Log in to Reply

            Previously—with other themes—I have used variations of the following to achieve this:

            function sgr_filter_image_sizes( $sizes) {
            
                unset( $sizes['medium']);
                unset( $sizes['large-feature']);
                 
                return $sizes;
            }
            add_filter('intermediate_image_sizes_advanced', 'sgr_filter_image_sizes');

            Haven’t been able to make this work with Baylys.
            (Code originally from here)

            • Marc (Support-Team) 2:38 pm on February 3, 2016 Permalink | Log in to Reply

              Hi Thorir,

              you can use the remove_image_size() function to prevent Baylys from creating an header image sized image file. Please keep in mind, that these images can potentially be used as individual header images on single post pages (if the featured image is big enough, it’ll be displayed as header image).

              Best,
              Marc

        • Thorir 12:14 pm on January 25, 2016 Permalink | Flag unresolved

            Tags: , ,   

            Hi
            Working on a site using Pohutukawa I experienced a problem with an image gallery. If the images had captions the alignment of the gallery was off (text above photos, causing them to be pushed down). This was using the built in WordPress gallery function.

            See here for a screenshot of a 3 image gallery between two paragrahps in the content area (https://www.dropbox.com/s/ksn6ondrsz55ftl/Pohutukawa-localhost%208888%202016-01-25%2012-05-45.png?dl=0).

            You think this is a matter of user error or is it possible that there is a bug in the theme?

             
            • Marc (Support-Team) 3:58 pm on January 27, 2016 Permalink | Log in to Reply

              Hi @thorirv12000,

              this is a known problem. Please try the following additional CSS code until it’s fixed in a future update:

              #content .gallery-item img {
              	width:100%;
              }
              #content dl.gallery-item {
              	width:32.3%;
              	height:auto;
              	margin:0 1% 1% 0;
              	float:left;
              }
              #content dd.wp-caption-text {
              	-webkit-hyphens: auto;
              	-moz-hyphens: auto;
              	-ms-hyphens: auto;
              	hyphens: auto;
              }
              

              Best,
              Marc

            • Thorir 11:01 pm on January 27, 2016 Permalink | Log in to Reply

              Thank you Marc!

          • Thorir 1:29 am on January 7, 2016 Permalink | Flag unresolved

              Tags: , ,   

              Pohutukawa, header 

              Hi
              You don’t happen to have a snippet handy that allows me to see the header image in Pohutukawa at all screen sizes?
              So that it will show even at mobile, only narrow (preferably without cropping it).
              Regards, Th

               
              • Marc (Support-Team) 11:50 am on January 8, 2016 Permalink | Log in to Reply

                Hi @thorirv12000,

                the following additional CSS-Code should work:

                .header-image {
                	display:block;
                	max-width:100%;
                	height:auto;
                	width: auto\9; /* ie8 */
                }
                

                Best,
                Marc

              • Thorir 5:32 pm on January 11, 2016 Permalink | Log in to Reply

                Many thanks Marc

                It does create a bit of a bug at larger viewport sizes though, but if wrapped in a

                @media screen and (max-width: 767px) {}

                it works like a charm : )

                (although I see how

                max-width

                isn’t excactly elegant in this context..)

            c
            compose new post
            j
            next post/next comment
            k
            previous post/previous comment
            r
            reply
            e
            edit
            o
            show/hide comments
            t
            go to top
            l
            go to login
            h
            show/hide help
            shift + esc
            cancel