# Question about properties replaced when published

**URL:** <https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675>\
**Category:** Beginners\
**Tags:** wordpress\
**Created:** [January 21, 2023, 7:33pm UTC](https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675 "2023-01-21T19:33:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonny](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jonny](https://forum.pinegrow.com/u/Jonny)\
**Post date:** [January 21, 2023, 7:33pm UTC](https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675/1 "2023-01-21T19:33:12Z")

</div>

I’m using Bootstrap 5 and the Pinegrow desktop editor to create a WP theme. I’m having trouble getting my logo ![]() to scale down to an appropriate size within my navbar. Even after explicitly setting a small height and width within Pinegrow (which looks correct within Pinegrow) my code is getting overwritten somewhere when published thru WP to a very large height and width.

I’m working locally, so I cannot share a link, but my code in question looks like this:

```
    <nav class="navbar navbar-expand">
        <div class="bg-danger container"><a href="#" class="navbar-brand" cms-site-logo style="width: auto; height: auto;"><img src="assets/img/SRG%20Banner%20Logo.png" width="250" style="object-fit: scale-down;"></a>

```

---

<div class="post-metadata">

**Author:** ![Jonny](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jonny](https://forum.pinegrow.com/u/Jonny)\
**Post date:** [January 21, 2023, 7:35pm UTC](https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675/3 "2023-01-21T19:35:14Z")

</div>

And when I view the source code after publishing it turned into this:

```auto
<nav class="navbar navbar-expand">
<div class="bg-danger container">
<a href="http://sagerreevesgallery.local/" class="custom-logo-link" rel="home" aria-current="page"><img width="1727" height="179" src="http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1.png" class="custom-logo" alt="Sager Reeves Gallery Logo" decoding="async" srcset="[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1.png 1727w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1.png),[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-600x62.png 600w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-600x62.png),[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-300x31.png 300w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-300x31.png),[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-1024x106.png 1024w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-1024x106.png),[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-768x80.png 768w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-768x80.png),[http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-1536x159.png 1536w](http://sagerreevesgallery.local/wp-content/uploads/2022/07/SRG-Banner-Logo-1-1536x159.png)" sizes="(max-width: 1727px) 100vw, 1727px" /></a>

```

---

<div class="post-metadata">

**Author:** ![Jonny](https://avatars.discourse-cdn.com/v4/letter/j/47e85d/32.png) [@Jonny](https://forum.pinegrow.com/u/Jonny)\
**Post date:** [January 21, 2023, 7:56pm UTC](https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675/4 "2023-01-21T19:56:14Z")

</div>

I figured it out. It was the WordPress Action “Site Logo” that I was applying to the `<a>` tag (that was wrapping the image) that was causing the issue.

Applying the WP Site Logo action to the image directly seems to honor the specific width that I code.

---

<div class="post-metadata">

**Author:** ![Emmanuel](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.pinegrow.com/emmanuel/32/6294_2.png) [@Emmanuel](https://forum.pinegrow.com/u/Emmanuel)\
**Post date:** [January 21, 2023, 8:23pm UTC](https://forum.pinegrow.com/t/question-about-properties-replaced-when-published/7675/5 "2023-01-21T20:23:18Z")

</div>

Thanks for your feedback!
