Support » Theme: Dyad » Header, volume of text and translate

  • Hello and thank you for this wonderful theme.
    I have 3 things I need help with.
    Is there a way to make the header hight smaller?
    Is it possible to change the volume of text that is shown beside of the images on the front( I tried to change it in Reading to Resume, but doesn’t seem to make a different)
    How do I translate the theme? Most important; translate the “Read More” on the buttons.

    • This topic was modified 3 years, 1 month ago by chilisky.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @chilisky,

    Is there a way to make the header hight smaller?

    Could you provide a link to your site for me? It’d be useful for me to see if you’re using the theme’s default header or the slideshow.

    Is it possible to change the volume of text that is shown beside of the images on the front( I tried to change it in Reading to Resume, but doesn’t seem to make a different)

    You can add the read more tag at the point you wish to cut your text off on the front page. I’ve highlighter where the tool for adding that tag can be found in the editor here:

    Screen Shot 2016 11 03 at 17 05 09

    As a heads up: If you do use the more tag to create a custom excerpt then the “read more” button will no longer display. That button doesn’t display alongside custom excerpts by default with Dyad.

    How do I translate the theme? Most important; translate the “Read More” on the buttons.

    Have you already set your site’s language via Settings > General? If so, you can contribute translations to the theme via its GlotPress page here:

    https://translate.wordpress.org/projects/wp-themes/dyad

    Select your language from the above page and then submit any untranslated strings for approval.

    If you’re able to contribute translations, let me know the language and I’ll try to help get them approved.

    Thanks!

    The site is offline atm, but the header is not a slideshow but a header picture.

    Thank you for pointing my to the read more tag function (wonder how I missed it)

    Yes, the site is set to my language. I looked at the link you provided and can see Dyad is translated 64%. I will look at it.

    Thanks for clarifying, @chilisky!

    There’s a couple of options here.

    Firstly, you could simply reduce the amount of space that the existing image takes up with some custom CSS.

    To add custom CSS: Firstly set up a child theme or activate a custom CSS plugin. (If you have Jetpack installed then you can activate its custom CSS module.)

    Enter the following snippet in either the editor for your CSS plugin or the style.css file of your child theme:

    @media only screen and (max-width: 1600px) {
        .site-banner-media, .site-banner .site-banner-thumbnail {
            padding-bottom: 20%;
        }
    
        .home .content-area, .blog .content-area, .single-format-image.has-post-thumbnail .content-area {
            margin-top: 20%;
        }
    }

    You can increase/decrease the value of padding-bottom and margin-top to increase/decrease the amount of space taken up by the header image. Both values need to stay the same in order for the header and content areas to remain aligned nicely together.

    You’ll notice, however, that the above option crops the image.

    Dyad is programmed to always generate the header image at 1800px wide and 720px high. Changing the amount of space it takes up with custom CSS will therefore crop the generated image.

    If you’d like to change the actual size of the image, you can override the parent theme’s programming by adding the following to the functions.php file in your child theme:

    function dyad_child_featured() {
        add_image_size( 'dyad-banner', 1800, 720 );
    }
    add_action( 'after_setup_theme', 'dyad_child_featured', 11 );

    From the above function, switch the value of 720 with the height you’d like your header image to be.

    After you have saved your changes, you may need to use the following plugin to regenerate your thumbnails before noticing a change:

    https://wordpress.org/plugins/regenerate-thumbnails/

    Let me know how you get on with those options or if you have any extra questions while walking through them.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Header, volume of text and translate’ is closed to new replies.