Customize header top menu (adding external shortcode)

Posted in: Newspaper
Post count: 16

Hi,
I am trying to add some custom code in the header but I am not getting it.
The idea is to show the price of the dollar after the date in the header top bar menu, like this: https://wetransfer.com/downloads/9f62ae37424597efe69f69c3d7f6901220191218185025/0e4098
How to add custom code in header top bar menu?
or How to create custom tagDiv element to put in there?
Thanks!

[Dollar quote from a third party:]
<!-- COMIENZO codigo cotizacion personalizado -->
<style type="text/css">
/* color de la moneda */
.cotizacion_personalizada {color:#dedede; }
/* color de valor de la moneda */
.cotizacion_personalizada A {color:#ffffff; text-decoration:none}
</style>
<span id="cotizacion_personalizada" class="cotizacion_personalizada">
Dólar ${dolar_c} / ${dolar_v}<br>
</span>
<script src="http://www.dolarcito.com.ar/scripts/cotizacion_personalizada.js" language="javascript" type="text/javascript"></script>
<script language="javascript" type="text/javascript">show(s_cotizacion_personalizada)</script>
<!-- FIN codigo cotizacion personalizado -->

Post count: 35449

Hi,

If you are using a standard header, then you’ll need to set the code in theme file, you can try to set it in this file -> wp-content/plugins/td-standard-pack/Newspaper/parts/header/top-menu.php or if you are using cloud template then you’ll need to insert your code in some cloud elements from header, you can set it in on of the files from this folder -> wp-content/plugins/td-cloud-library/shortcodes/header

Unfortunately this is all I can do for this custom work.
Hope this will help!
Thank you!

Post count: 16

Thanks Calin,
I have tried and finally I have been able to reach a good result.
I loaded a “header template” from “tagDiv Cloud Library” and edited it with “tagDiv Composer” until I got a result close to what I wanted. Then I edited one of the files in wp-content / plugins / td-cloud-library / shortcodes / header to embed the custom code.
The problem now is that when you load the page, the header is initially displayed higher than it is.
While loading https://snipboard.io/xgy6pl.jpg
Once you finish loading https://snipboard.io/w2UGmT.jpg
I tried to delete the modifications made to the php file (raising a backup), load a new “header template” from “tagDiv Cloud Library” and leave it as it comes but I always get the same result. Only when I use the default header does this not happen.
Why does this happen? What can I do to avoid it?
Thank you!

Post count: 35449

Hi,

Is possible to take some time until the style custom style from cloud template is apply, indeed on your website the is take some time and this is quite visible.
Please deactivate all non theme plugin and check again to see if the problem persists.

Let me know the results!
Thank you!

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