Jump to content
  • 0

Logo Not Scaling


wfitg

Question

My logo is not scaling. It is not responsive to the screen size on hand held devices either. The rest of the page items are fine. See attachment.

 

Can anyone make suggestions on how to get it to scale with the rest of the items on the page? Or point me to the right files to edit or a howto?

 

thanks :)

post-10610-0-32961700-1409831784_thumb.p

Link to comment
Share on other sites

13 answers to this question

Recommended Posts

  • 0

Did'nt work, but thanks.

However, adding this did, I used it as a workaround, for those people searching:

structure.pt

<a href="index.html">

<img src="https://wfitg.com/img/small-logo3.png" alt="logo" class="emailImage" />

</a>

the css:

@media only screen and (max-width: 480px)

{

.emailImage{

height:auto !important;

max-width:600px !important;

width: 100% !important;

}

}

Link to comment
Share on other sites

  • 0

This vQmod will make the logo responsive as long as you haven't already modified that part of the structure.pdt. You can look at the generated file in vqmod/vqcache to find out what the resulting structure.pdt looks like when the changes have been applied.

 

I wasn't able to make this work without manually modifying the css file. This vQmod inserts the .img-responsive class in structure.pdt, but isn't overwriting the .logo class in styles.css.

 

According to About vQmod, "css & js files - These files are rendered at the browser level, not at the server level, so vQmod has no effect on these."

 

Is that the case here, or do I need to hunt down a gremlin? I guess it doesn't really matter, because I can just continue to use my manually modified css file. But I'm curious.

Link to comment
Share on other sites

  • 0

I wasn't able to make this work without manually modifying the css file. This vQmod inserts the .img-responsive class in structure.pdt, but isn't overwriting the .logo class in styles.css.

 

According to About vQmod, "css & js files - These files are rendered at the browser level, not at the server level, so vQmod has no effect on these."

 

Is that the case here, or do I need to hunt down a gremlin? I guess it doesn't really matter, because I can just continue to use my manually modified css file. But I'm curious.

you can use my plugin "css & javascript toolbox" to acheive this , add the css you want to the class you want .

Link to comment
Share on other sites

  • 0

I wasn't able to make this work without manually modifying the css file. This vQmod inserts the .img-responsive class in structure.pdt, but isn't overwriting the .logo class in styles.css.

 

According to About vQmod, "css & js files - These files are rendered at the browser level, not at the server level, so vQmod has no effect on these."

 

Is that the case here, or do I need to hunt down a gremlin? I guess it doesn't really matter, because I can just continue to use my manually modified css file. But I'm curious.

 

Yes, that's correct. not sure what I was thinking there. Try using a combination of vQmod for adding the img-responsive class and use the CSS & JavaScript toolbox for the CSS.

Link to comment
Share on other sites

  • 0

@Tyson

Thanks for the tip. :)

For those of us that are " visual learners " here is a more clear explanation of what to do...


STEP 1 - Open up  app/views/client/bootstrap/strucutre.pdt

Look around LINES 204 - 212 you should find...
 

<div class="logo">
                    <a href="<?php echo $this->Html->safe($this->base_uri);?>">
                        <?php
                        if (!empty($theme_logo)) {
                        ?>
                        <img src="<?php $this->Html->_($theme_logo);?>" alt="Logo" />
                        <?php
                        } elseif (!empty($blesta_logo)) {
                        ?>

 

And change it to ...

<div class="logo">
                    <a href="<?php echo $this->Html->safe($this->base_uri);?>">
                        <?php
                        if (!empty($theme_logo)) {
                        ?>
                        <img class="img-responsive" src="<?php $this->Html->_($theme_logo);?>" alt="Logo" /><!-- added a class to make logo responsive. Comment out the the width for " .logo " in the styles.css file -->
                        <?php
                        } elseif (!empty($blesta_logo)) {
                        ?>

 

 

STEP 2 - Open up  app/views/client/bootstrap/css/styles.css

Look around LINES 58 - 63 you should find...

.logo {
    width: 123px;
    float: left;
    margin: 13px 0 3px 15px;
    display: inline;
}

 

And change it to ...

.logo {
    /* width: 123px; */  /* Commented this out to help make the logo responsive.  Also need to add class="img-responsive" around line 209 for the logo */
    float: left;
    margin: 13px 0 3px 15px;
    display: inline;
}

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...