Title: Syngency plugin, code problem
Last modified: April 12, 2021

---

# Syngency plugin, code problem

 *  [hermoone](https://wordpress.org/support/users/hermoone/)
 * (@hermoone)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/syngency-plugin-code-problem-2/)
 * Hi,
 * I just installed plugin called Syngency, support is not quite good with fixing
   these problems, but I have error duplicated code
 *     ```
       <!-- default model template -->
   
       <div class="syngency-model">
   
       	<!-- Model Name -->
       	<h2 class="syngency-model-name">{{ model.display_name }}</h2>
   
       	<!-- Gallery Links -->
       	<ul class="syngency-model-galleries">
       	{% for gallery in model.galleries %}
       		<li>
       			<a href="#{{ gallery.url }}" {% if forloop.first %} class="active" {% endif %}>
       				{{ gallery.name }}
       			</a>
       		</li>
       	{% endfor %}
       	</ul>
   
       	{% for gallery in model.galleries %}
   
       	<!-- Gallery -->
       	<div class="syngency-model-gallery" id="{{ gallery.url }}" {% if forloop.first == false %} style="display:none" {% endif %}>
       		<h3 class="syngency-model-gallery-name">{{ gallery.name }}</h3>
       		<ul>
       			{% for file in gallery.files %}
   
       				{% if file.is_image %}
       				<li class="syngency-model-gallery-image">
       					{% if options.link_size %}
       					<a href="{{ file.link_url }}" rel="{{ gallery.url }}">
       						<img src="{{ file.image_url }}" alt="">
       					</a>
       					{% else %}
       						<img src="{{ file.image_url }}" alt="">
       					{% endif %}
       				</li>
       				{% endif %}
   
       			{% endfor %}
   
       		</ul>
       	</div>
   
       	{% endfor %}
   
       	<!-- Measurements -->
       	<ul class="syngency-model-measurements">
       		{% for measurement in model.measurements %}
       			{% unless options.measurements contains measurement.name %}
       		<li>
       			<span class="label">{{ measurement.name }}</span>
       			{% if measurement.imperial %}
       				<span class="value imperial">{{ measurement.imperial }}</span>
       				<span class="value metric">{{ measurement.metric }}</span>
       			{% else %}
       				<span class="value size">{{ measurement.size }}</span>
       			{% endif %}
       		</li>
       			{% endunless %}
       		{% endfor %}
       		{% if options.measurements contains 'Hair' and model.hair_color %}
               <li>
                   <span class="label">Hair</span>
                   </li>
                   <li>
                   <span class="value">{{ model.hair_color }}</span>
               </li>
               {% endif %}
               {% if options.measurements contains 'Eyes' and model.eye_color %}
               <li>
                   <span class="label">Eyes</span>
                   </li>
                   <li>
                   <span class="value">{{ model.eye_color }}</span>
               </li>
               {% endif %}
       	</ul>
   
       </div>
   
       <style>
   
       .syngency-model-gallery-name {
       	border-bottom: 1px solid #ddd;
       	padding-bottom: 15px;
       }
   
       .syngency-model-measurements {
       	list-style: none;
       	padding: 15px 0 0 0;
       	margin: 30px 0;
       	border-top: 1px solid #ddd;
       }
   
       .syngency-model-measurements li {
       	display: inline;
       	margin-right: 15px;
       }
   
       .syngency-model-measurements li:last-child {
       	margin-right: 0;
       }
   
       .syngency-model-measurements .label {
       	color: #acacac;
       }
   
       .syngency-model-measurements .value {
       	font-weight: bold;
       }
   
       .syngency-model-galleries {
       	list-style: none;
       	padding: 0;
       	margin: 0;
       	float: right;
       }
   
       .syngency-model-galleries li {
       	display: inline;
       	padding-right: 5px;
       	margin-right: 10px;
       	border-right: 1px solid #ccc;
       }
   
       .syngency-model-galleries li:last-child {
       	border-right: 0;
       }
   
       .syngency-model-galleries a {
       	font-family: Helvetica, Arial, sans-serif;
       	font-size: 12px;
       	font-weight: 700;
       	text-transform: uppercase;
       	text-decoration: none;
       	color: #999;
       	letter-spacing: 0.5px;
       	box-shadow: none !important;
       }
   
       .syngency-model-galleries a.active {
       	color: #191919;
       	text-decoration: underline;
       }
   
       .syngency-model-gallery ul {
       	list-style: none;
       	padding: 0;
       	margin: 0;
       }
   
       .syngency-model-gallery li {
       	display: inline-block;
       	margin: 0 15px 15px 0;
       	padding: 5px;
       	border: 1px solid #eee;
       	box-shadow: none !important;
       }
   
       .syngency-model-gallery-image a img {
       	display: inline-block !important;
       }
   
       .hide {
       	display: none !important;
       }
       </style>
       ```
   
 * I have error on this line:
 *     ```
       <li>
       			<a href="{{ gallery.url }}" {% if forloop.first %} class="active" {% endif %}>
       				{{ gallery.name }}
       			</a>
       		</li>
       ```
   
 *     ```
       <div class="syngency-model-gallery" id="{{ gallery.url }}" {% if forloop.first == false %} style="display:none" {% endif %}>
       ```
   
 * Error: Duplicate of attribute name [ {% ]was found
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsyngency-plugin-code-problem-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Syngency plugin, code problem’ is closed to new replies.

 * ![](https://ps.w.org/syngency/assets/icon-256x256.png?rev=3068428)
 * [Syngency](https://wordpress.org/plugins/syngency/)
 * [Support Threads](https://wordpress.org/support/plugin/syngency/)
 * [Active Topics](https://wordpress.org/support/plugin/syngency/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/syngency/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/syngency/reviews/)

## Tags

 * [divi](https://wordpress.org/support/topic-tag/divi/)

 * 0 replies
 * 1 participant
 * Last reply from: [hermoone](https://wordpress.org/support/users/hermoone/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/syngency-plugin-code-problem-2/)
 * Status: not resolved