Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1364414

    Dear support-team,
    as always I know I can await an amazing answer, so I’m really looking forward for it.
    As a good, usefull and upcomming trend in SEO both facts mentioned in the headline of this request should get integrated at the same time.

    1. I would love to delete (or change) the re=”nofollow” attribute on the internal search links
    2. To perform the best possible solution I’d like to integrate PRG-Patterns to avoid showing search parameters in urls

    Thx in advance and all the best,
    Chris

    #1364416

    In principle, only the php content would have to be included, and the links would have to be assigned the class prg, or do I understand it wrong? A hidden redirect form could be placed in a footer widget area or in a hidden header widget area.

    by the way i do not see on my istallations – that an internal Link got rel nofollow neither on my pages nor on search results ( ajax or page ).

    #1364417

    Dear Guenni007,
    thx for your reply.
    This is the Code I mentioned in the desc. for the search links:

    <a aria-label="Suche" href="?s=" rel="nofollow" data-avia-search-tooltip="
    
    <form role=&quot;search&quot; action=&quot;https://internetschlosser.de/&quot; id=&quot;searchform&quot; method=&quot;get&quot; class=&quot;&quot;>
    	<div>
    		<input type=&quot;submit&quot; value=&quot;&quot; id=&quot;searchsubmit&quot; class=&quot;button avia-font-entypo-fontello&quot; />
    		<input type=&quot;text&quot; id=&quot;s&quot; name=&quot;s&quot; value=&quot;&quot; placeholder='Suche' />
    			</div>
    </form>
    " aria-hidden="false" data-av_icon="" data-av_iconfont="entypo-fontello" style="height: 90px; line-height: 90px;"><span class="avia_hidden_link_text">Suche</span></a>

    You’ll see in the first line the nofollow attr. – this should be gone.
    The second part regarding the PRG patterns, if I understood your explanation right, can be done by a script loaded in the footer combined with a class? That would be really exciting …
    Looking forward for your reply.
    All the best,
    Chris

    #1364462

    hm – first of all – as far as i know the bots of the crawlers will not follow submit buttons – thats the trick on prg patterns. So a search form like yours would not be affected by the “linkjuice” issue anyway.

    Is that an Enfold Search ALB element you put on the page? Because I don’t get a “link element” there in my DOM anyway:

    (click to enlarge the image)

    And even the search results beneath that form – do not have a rel : nofollow

    So now my question regarding your Enfold version in which this occurs.

    Edit: Ok now i see – this is the magnifier glass on top besides the navigation …
    It is only that link that opens the search input form – But doesn’t it even make sense to set a nofollow at this anchor for SEO reasons?

    #1364464

    Nice – your edit solves the intent of your question.
    My request isn’t a pure SEO driven question. It has a fine technical aspect that effects seo positivly as well as other nice effects. The question ist not to fire a button to get that funktion, it is about the linked URL. Simple logic: if Google locates an URL it will be crawled anyway which surely doesn’t mea that this URL will get indexed. I’m sure you see the nice trick behind it.

    #1364465

    but it is interesting to see how it could be possible to deliberately mark links in such a way that they run through the PRG pattern (Post, Redirect, Get).
    Because yes – everyone has somehow in his footer area links that are actually only there to meet legal requirements.

    #1364466

    by the way – this page here – https://tobier.de/prg-pattern-in-wordpress-implementieren/ works so far for manually set links.

    #1364467

    Did you already implemented it successfully? If yes, I‘m curious on your steps 🤗

    #1364468

    just put his code name it f.e. prg_patterns.php therefore you had to start that codesnippet of him by a leading <?php
    – and upload it to your child-theme/shortcodes folder.
    if you haven’t allready this littel snippet in your child-theme functions.php – insert it :

    function avia_include_shortcode_template($paths){
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
      return $paths;
    }
    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);

    see doku to have own alb elements

    see example in the footer area with links to impressum and datenschutz

    https://enfold.webers-webdesign.de/impressum/#footer

    i just edited his code a bit to have on form element classes to style the form output better:

    /* form output */
    ob_start();
    ?>
    	<?php if( $atts['newtab'] == 'true' ): ?>
    	<form class="prg newtab" method="POST" target="_blank">
    	<?php else: ?>
    	<form class="prg" method="POST">
    	<?php endif; ?>
    		<button class="noLink" type="submit" name="prgpattern" value="<?php echo $redirect_slug; ?>"><?php echo $atts['title']; ?></button>
    	</form>
    <?php
    return ob_get_clean();

    then i can set for those forms:

    #top form.prg {
      display: inline-block;
      margin-bottom: 0;
    }
    
    #top form.prg .noLink {
      border: none;
      font-size: inherit;
      color: inherit;
      background-color: transparent;
    }
    
    #top form.prg .noLink:hover {
      color: gold;
      cursor: pointer;
      transition: all 0.5s ease
    }

    #1364471

    That looks pretty nice. Thank you very much for closing that circle for me!
    Do you know possibly a solution to get this function fired on pre-defined css classes or other existing Enfold anchors of any kind?

    #1364473

    no – not now – sorry

    #1364474

    Thank you very much anyway!
    I‘ll try to figure it out. In case of success I‘ll let you know.
    All the best,
    Chris

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.