How to increase HTML widget height?

Posted in: Newspaper
Post count: 2

I’ve been trying to add a html widget (with an autosize function) inside one of my columns (1/1) on the homepage and I get mixed results. With autosize, the width fills up but the height stays narrow not showing the full chart. If i were to replace the “autosize” and input with actual “widths” and “height” then it wont autosize on the mobile version, being too big too see on your phone.

So the main problem is getting the chart to show up on the mobile version of my website without it being too wide to see, and then also being big enough for those desktop viewers. The only way I can see this working is if I can have it on autosize but somehow find a way to increase the default widget box css height but how?

<!– TradingView Widget BEGIN –>
<script type=”text/javascript” src=”https://d33t3vvu2t2yu5.cloudfront.net/tv.js”></script&gt;
<script type=”text/javascript”>
new TradingView.widget({
“autosize”: true,
“symbol”: “FX:SPX500”,
“interval”: “D”,
“timezone”: “Etc/UTC”,
“theme”: “White”,
“style”: “1”,
“locale”: “en”,
“toolbar_bg”: “#f1f3f6”,
“allow_symbol_change”: true,
“hideideas”: true,
“show_popup_button”: true,
“popup_width”: “1000”,
“popup_height”: “650”,
“no_referral_id”: true
});
</script>
<!– TradingView Widget END –>

Or is there a way to disable the mobile version of the newspaper theme so everyone redirects to the desktop version no matter what?

Post count: 22421

Hello,
Unfortunately we cannot help you in this matter as it is not covered by support. We cannot provide customization services at the moment. We try to help out where we can but your modification requires quite a bit of time to alter the theme css and we cannot tackle such tasks. You will need to edit style.css and remove all the parts of the css that switch to the mobile version of the theme. We recommend hiring a freelancer to help out on this task from sites like studio.envato.com.
Thank you for your understanding.

Viewing 2 posts - 1 through 2 (of 2 total)
The forum ‘Newspaper’ is closed to new topics and replies.