Include code itemprop = "url"

Guys I need a help.
I’m trying to edit the file: bb-plugin / modules / heading / includes / frontend.php

I have the following code:
<a href="<?php echo $settings->link;?> "title =" <?php echo esc_attr($settings->heading);?> "target =" <?php echo $settings->link_target; ?> "<?php echo $module->get_rel (); ? >>

I need to include the following html code:
itemprop = “url”
How do I make this magic happen?
I have tried in several ways but I have not been successful.
Who can help me, I will be very grateful!

dont ever edit the files in the plugin, your edits will be nuked next time you update the plugin.

Ok, I did exactly as the implementation guide asks but I have the same problem, I can’t load the html code itemprop = “url” inside the tag, do you know how I could do this? Thank you so much for helping!

Just paste it into the file, im not sure exactly why you cant do that

I have this code:

<<?php echo $settings->tag; ?> class=“fl-heading” itemprop=“headline”>
<?php if ( ! empty( $settings->link ) ) : ?>
<a href="<?php echo $settings->link; ?>" title="<?php echo esc_attr( $settings->heading ); ?>" target="<?php echo $settings->link_target; ?>"<?php echo $module->get_rel(); ?>>
<?php endif; ?>
<?php echo $settings->heading; ?>
<?php if ( ! empty( $settings->link ) ) : ?>>

<?php endif; ?>
</<?php echo $settings->tag; ?>>

I would like you to load the itemprop = “url” attribute inside the tag, so I edited it to:

<<?php echo $settings->tag; ?> class=“fl-heading” itemprop=“headline”>
<?php if ( ! empty( $settings->link ) ) : ?>
<a href="<?php echo $settings->link; ?>" title="<?php echo esc_attr( $settings->heading ); ?>" target="<?php echo $settings->link_target; ?>"<?php echo $module->get_rel(); ?>itemprop=“url”>
<?php endif; ?>
<?php echo $settings->heading; ?>
<?php if ( ! empty( $settings->link ) ) : ?>>

<?php endif; ?>
</<?php echo $settings->tag; ?>>

but it doesn’t work, the itemprop = “url” code doesn’t load

Any idea what it might be? Thank you for helping me!

That should work assuming the heading has a link.

Whats the URL to the page you are testing this on?

Also, if you are going to paste code here, or any forums, please use the code button to format as readable code so people can copy/paste it

Ok, thank you very much for helping me, I’m sorry, next time I will put the code as you asked. The test url in question is:

https://vps62981.inmotionhosting.com/~pdfsol5/pdfpremium/divisoria-para-escritorio-em-cabreuva/

Any sort of clue as to where this is supposed to be in that long page? I tried looking at the source but of course its concatenated and minified to make that impossible.

Ok, I’m sorry, I’m going to disable the HTML minification service so you can see the code more clearly

o código itemprop="url" deveria ser carregado nessa linha de exemplo:

    <div class="fl-col-group fl-node-5f68cf64ef49a" data-node="5f68cf64ef49a">
		<div class="fl-col fl-node-5f68cf64ef49b" data-node="5f68cf64ef49b">
<div class="fl-col-content fl-node-content">
<div class="fl-module fl-module-heading fl-node-5f68cf64ef49f" data-node="5f68cf64ef49f">
<div class="fl-module-content fl-node-content">
	<h2 class="fl-heading" itemprop="headline">
	<span class="fl-heading-text"><em><strong>Procurando <a title="Divisória Para Escritório em Cabreúva" href="https://www.pdfpremium.com.br/divisoria-para-escritorio-em-cabreuva/"> Divisórias para o Escritório da sua Empresa localizada em Cabreúva</a></strong></em>?</span>
</h2>	</div>

So, which of the headings has a link set?

Looks like you have added the link as part of the heading text? in which case you don’t even need to edit the module, just update the link you added in the text field and add the pro there

sorry the microdata should be loaded in that code

<h2 class="fl-heading" itemprop="headline"> <span class="fl-heading-text"><em><strong>Procurando <a title="Divisória Para Escritório em Cabreúva" href="https://www.pdfpremium.com.br/divisoria-para-escritorio-em-cabreuva/"> Divisórias para o Escritório da sua Empresa localizada em Cabreúva</a></strong></em>?</span> </h2>

note that I managed to put the code itemprop="headline", but the code itemprop="url" i couldn’t

this is the code I need to edit

<<?php echo $settings->tag; ?> class="fl-heading" itemprop="headline"> <?php if ( ! empty( $settings->link ) ) : ?> <a href="<?php echo $settings->link; ?>" title="<?php echo esc_attr( $settings->heading ); ?>" itemprop="url" target="<?php echo $settings->link_target; ?>"<?php echo $module->get_rel(); ?>> <?php endif; ?> <span class="fl-heading-text"><?php echo $settings->heading; ?></span> <?php if ( ! empty( $settings->link ) ) : ?>> </a> <?php endif; ?> </<?php echo $settings->tag; ?>>

You heading HAS to be set to a link for that part of the code to work… yours is not… you added a link to the text field. All you need to do is add the itempro to the link you added in the text area, no need to edit ANY module files.

It worked! Thank you so very much for helping me