Support » Plugin: Custom Header Images » Responsive (Changing Header size) — px vs. %

  • Resolved JAYMICHAELIVING

    (@jaymichaeliving)


    Hey!

    This theme saved me after about 2hrs+ searching for something of this magnitude.

    I was wondering if there was a way for me to set my width & height to 100% to respond to mobile devices, etc.

    I changed the ‘chi_width’=960 to chi_width’ =>700, and left the height the same.

    Then I went down to deta-link and changed the width:[width]px to width: 100%.

    With that being said, none of this changed anything in my live view.

    When I Inspect Element (and right click on my Header) it still shows that my width is still set to 960px. However, when I manually change the width: 960px to 100%, it functions perfectly.

    How can I code this to work in the php files?

    http://wordpress.org/plugins/custom-header-images/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Blackbam

    (@blackbam)

    Hello Jay

    currently I do not see the problem exactly, but I think that the custom output function at the bottom of the settings page is also the solution here.

    If there is a but with using ‘chi_width’ in PHP-Code I will check this, but with custom output and some knowledge of CSS and maybe Javascript it should be definitly possible to style the output to your needs.

    Does this help you?

    I left the height and width fields blank and then in the custom output I added the following <img src="[image_url]" /> now it outputs and image and it is also responsive

    Plugin Author Blackbam

    (@blackbam)

    Resolved.

    weslers THANKS! My original goal was to simply align the image to the left. Your method did that and made it responsive. I’m still curious to know how you can modify ‘.chi_display_header’ since it’s not in Style.CSS, if that’s even the precise class that can apply alignment changes. Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Responsive (Changing Header size) — px vs. %’ is closed to new replies.