Forum Replies Created

Viewing 30 posts - 6,061 through 6,090 (of 11,794 total)
  • Author
    Posts
  • in reply to: Make whole portfolio grid entry link #1162977

    you can see results here on my test-page: https://webers-testseite.de/portfolio/
    Edit : i’m still experimenting a bit – so the example page could be not of the intended function.

    maybe Ismael knows a method to do it for that ajax setup too. Without that selector only for non ajax grids the click on ajax has two click events and does open first the window above the grid – but directly moves to the single portfolio.

    • This reply was modified 5 years, 11 months ago by Guenni007.
    in reply to: Make whole portfolio grid entry link #1162975

    so we had to make the changings only for not ajax protfolios – try this instead please:

    function transfer_link_from_child(){
    ?>
    <script>
    (function($){
    	$(document).ready(function(){  
    		$('.grid-sort-container:not(.grid-links-ajax)').find('.grid-entry .inner-entry').each(function(){
    			var theLink = $(this).find('.grid-image').attr('href'); 
    			$(this).addClass("clickme"); 
    			$(this).on("click", function(){
    				window.location.href = theLink;
    			});	
    		});
    	});
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'transfer_link_from_child');

    i styled it this way:

    .clickme:hover { 
    	cursor: pointer;
    	-webkit-filter: drop-shadow(2px 3px 5px #999);
    	filter: drop-shadow(2px 3px 5px #999);
    }

    i changed the code to containter with .inner-entry class because if you got padding on those the styling could be more precise

    in reply to: Make whole portfolio grid entry link #1162891

    click on one link please of the blog ( on the bottom or text )

    in reply to: Make whole portfolio grid entry link #1162879

    really ?

    in reply to: Make whole portfolio grid entry link #1162875

    yes i changed it allready on my post above – transmission errors ;)

    in reply to: Make whole portfolio grid entry link #1162864

    bei deinem Nick gehe ich mal davon aus, dass du Deutsch sprichts.
    Hast du mal einen Link worum es geht. In deiner Beschreibung oben fehlen ein paar Informationen um es nachzubauen.
    Da ist ein Link immer besser um Ratschläge zu geben.

    did you make sure you left the top <?php up there ?

    The purpose of a child theme solution is to leave the parent elements untouched – my code above works without changing a parent element file.

    Ishmael’s code from Back then (2016) certainly worked; only the function: unregister_taxonomy() has probably become part of the parent source code by now. And that would end in an error because: A redeclaration is not possible – thats why i wrote that i had renamed the function to something different.

    I have tested it by myself and you see that even on this part there is book categories.
    By the way, if you have not intentionally disabled it – you can edit the functions.php via the dashboard.
    Dashboard – Appearance – Theme Editor
    on the right side you can choose the file which you like to edit. On default there are only two files ( style.css and functions.php)

    maybe Ismael looks over it – if there could be more replacements in the code. On my test it works everything. Even the left right Postnavigation etc.

    we only had to rename the function to let it work – because a redeclaration of a function that already exists is not possible : so code for you to try:

    /**** Portfolio umbenennen im Dashboard ****/
    add_action( 'init', 'unregister_taxonomy_for_custom_label', 30);
    function unregister_taxonomy_for_custom_label(){
      global $wp_taxonomies;
      $taxonomy = 'portfolio_entries';
      if ( taxonomy_exists( $taxonomy))
        unset( $wp_taxonomies[$taxonomy]);
    }
    
    // portfolio args
    add_action( 'init', 'init_reg_portfolio', 50 );
    function init_reg_portfolio() {
      add_filter('avf_portfolio_cpt_args', 'avf_portfolio_cpt_args_mod', 50, 1);
    
      $tax_args = array(
        "hierarchical" => true,
        "label" => "Books Categories",
        "singular_label" => "Books Category",
        "rewrite" => array('slug'=>_x($permalinks['portfolio_entries_taxonomy_base'],'URL slug','avia_framework'), 'with_front'=>true),
        "query_var" => true
      );
    
      $avia_config['custom_taxonomy']['portfolio']['portfolio_entries']['args'] = $tax_args;
    
      register_taxonomy("portfolio_entries", array("portfolio"), $tax_args);
    }
    
    add_action( 'after_setup_theme', 'init_reg_portfolio' );
    
    function avf_portfolio_cpt_args_mod($args) {
      $labels = array(
        'name' => _x('Books', 'post type general name','avia_framework'),
        'singular_name' => _x('Books Entry', 'post type singular name','avia_framework'),
        'add_new' => _x('Add New', 'book','avia_framework'),
        'add_new_item' => __('Add New Book Entry','avia_framework'),
        'edit_item' => __('Edit Book Entry','avia_framework'),
        'new_item' => __('New Book Entry','avia_framework'),
        'view_item' => __('View Book Entry','avia_framework'),
        'search_items' => __('Search Book Entries','avia_framework'),
        'not_found' =>  __('No Book Entries found','avia_framework'),
        'not_found_in_trash' => __('No Book Entries found in Trash','avia_framework'),
        'parent_item_colon' => ''
      );
    
      $args['labels'] = $labels;
      return $args;
    }
    /*** Ende ****/

    if you put this to your child-Theme functions.php:

    Edit : look

    and on Permalinks change it to books and books_entries

    Well you can change the label and on permalinks the slug you see in the url.
    See here for Label: https://kriesi.at/support/topic/possible-to-rename-portfolio-entirely/

    and here is the child-theme usage : https://kriesi.at/support/topic/renaming-the-portfolio-custom-post-type-child-theme-issues/#post-564363

    in reply to: Why are blog Grid Links H3 and List Links H2? #1162740

    by the way the other method is elegant too and changes the standard settings before it they are built.

    but it is not so easy to get the right code

    in reply to: Why are blog Grid Links H3 and List Links H2? #1162735

    on the code above you can add as many changes you like to have semi-colon separated ( this part: replaceElementTag…
    The function on top is to transfer all attributes to the new tag.
    see here explanation: https://kriesi.at/support/topic/widget-tags-remove-h3/#post-1016082

    in reply to: Why are blog Grid Links H3 and List Links H2? #1162733

    you can use as many h2 and h3 etc as you like.
    If you want the weighting in the sense of SEO to be different, then you can either use the filter: avf_customize_heading_settings
    see here some explanations to it:

    https://kriesi.at/support/topic/timeline-milestone-h2-and-h3-tags-how-can-i-delete/#post-1098165
    and following answers. ( or see github : Link )

    or use one nice thing i use when i want to replace only the tags of an existing structure.
    This is a generally usable thing : https://kriesi.at/support/topic/widget-tags-remove-h3/#post-1016049

    in your case this comes to child-theme functions.php:

    function replace_tags_with_tags(){
    ?>
    <script>
      (function($) {       
          function replaceElementTag(targetSelector, newTagString) {
            $(targetSelector).each(function(){
              var newElem = $(newTagString, {html: $(this).html()});
              $.each(this.attributes, function() {
                newElem.attr(this.name, this.value);
              });
              $(this).replaceWith(newElem);
            });
          }
          replaceElementTag('h3.grid-entry-title', '<h2></h2>'); 
          replaceElementTag('h2.post-title', '<h3></h3>'); 
      }(jQuery)); 
    </script>
    <?php
    }
    add_action('wp_footer', 'replace_tags_with_tags');
    in reply to: Make whole portfolio grid entry link #1162731

    hm try this instead:

    function shift_link_to_grid(){
    ?>
    <script type="text/javascript">
    (function($) { 
    	$(document).ready(function() {
    		$('.grid-entry').on('click', function() {
    			window.location.href = $(this).find('.grid-image').attr('href');
    		});
    	});	
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'shift_link_to_grid');
    in reply to: Where can I change the size of the font main menu #1162726

    The rule of the hover state with font-size comes from:

    #top #header .av-main-nav > li:hover > a {
    	color: #ffffff;
    	background-color: #d54238;
    	font-size: 17px;
    }

    and maybe it is set in the “Advanced Styling”

    in reply to: Change name of child theme #1162720

    That file is only the backup for your theme settings and quick css entries etc. pp.
    Renaming the child theme just with a ftp client and rename the child folder if you like and open the style css and rename it on “Theme Name:”
    Do not change the part of the parent theme name: “Template: enfold”
    This is possible too but …
    here are some thoughts on obfuscating the source parent theme: https://kriesi.at/support/topic/source-code-change-delete-theme-name/

    in reply to: Bug: Enfold causes wrong update markers #1162656

    hm sorry – I missed that ( By default notifications are hidden for the bundled version. The filter is only needed if you want to show notifications also for the bundled. ) , and because I had the code already in my child-theme functions.php it was clear to me that it was needed additionally.
    My mistake ! yes so it is best.
    And if we had the yes instead it will be shown – brilliant solution.

    in reply to: Enfold 4.6.3.1 slow performance and 500-errors #1162516

    Yoast SEO is a very powerful tool, but for many normal users it is a bit oversized.
    If you are clear about what you want to include in a SEO project, you often get along better with less.
    As a caching tool I like to use Cache Enabler at the moment. In combination with WebP Plugin which generates from my jpg and pngs webp this is a good performance increase.

    in reply to: Enfold images copyright free? #1162509

    In that case, you should post it there, too.
    so this might be then in your description:
    Please Note: Most images in the theme demo are stock photos from photodune which are only for use with the theme

    in reply to: Do I Ever Need to Update my Child Theme? #1162485

    An additional info would be important.
    As long as you only have the two files style.css and functions.php (and a third one: screenshot.png for preview) in your child theme folder, then your presumption is correct.

    However, some have headers or footers or other files as modified files that are intentionally located in their child-theme. This was obviously done to add functionality to the source code of these files. These changes must then still be included in the new files.

    I remember here a change of the header.php of the parent theme regarding the lightbox settings – so here those who had a header.php in the child theme had problems with their lightbox function after updating the parent theme. So if you have additional files in your Child-Theme folder you need to check if the parent-themes files have changed.
    See for example: https://kriesi.at/support/topic/lightbox-doesnt-work-anymore-after-update/ etc. pp

    in reply to: Bug: Enfold causes wrong update markers #1162380

    I agree with you, of course, therefore I think it would be better to turn it off by default, and only be activated if the standalone plugin is installed.

    in reply to: Contact form spacing, du Anrede #1162376

    Der Du als Standard rührt halt noch aus der Zeit her, als WP ein reines Blogger Tool war.
    Bis dann.

    in reply to: Enfold images copyright free? #1162345

    This is not in all circumstances right: Link

    • Please Note: Most images in the theme demo are stock photos from photodune which are not part of the theme
    in reply to: Contact form spacing, du Anrede #1162338

    wenn du generell die formale Anrede nutzen möchtest, dann stell es im Dashboard bei “Einstellungen – Allgemein – Sprache der Website” ein ( Deutsch(Sie)). – Dann sollte Enfold auch die entsprechenden Sprachfiles nehmen.

    in reply to: Grid row mobile responsiveness not working properly #1162261

    look here and tryout the responsiveness.
    under the point “code” you can see how it works.
    These settings had to be adjusted on each case.

    https://webers-testseite.de/content-slider

    in reply to: Bug: Enfold causes wrong update markers #1162167

    Wow – thats nice – one thing not to remember on updating enfold.

    in reply to: Bug: Enfold causes wrong update markers #1162070

    By the way: @doffine
    it is not a bug. When that little red 1 shows up, the layerslider has updates – the only error is that this red 1 is displayed in the Plugin Tab, but there is no LayerSlider there.
    I for my part am very satisfied that the Layerslider is included as a bonus in Enfold.
    Or do we want to complain here until it is removed from the package?
    ;) https://www.youtube.com/watch?v=-2iZjxSGca8

    in reply to: Bug: Enfold causes wrong update markers #1162068

    Thanks Günter – That worked right away.
    ______
    But what I don’t understand at all, because in the original file, it is noted with “LayerSlider”. So I have it on my server too.
    614 : $layerslider = str_replace( '\\', '/', get_template_directory() . '/config-layerslider/LayerSlider/layerslider.php' );

    In the changed config.php line 633 it now says “layerslider” – and that’s how it runs ??? allthough i got LayerSlider folder.
    633: $layerslider = '/config-layerslider/layerslider/layerslider.php';

    it wouldn’t have bothered me personally, but there are still some customers with admin access who always believe that there is a need for action because of this little red sign.

    For me it is solved now – and can be closed.
    Will this be implemented in a future Enfold version? Certainly not yet into the next one, after Envato hastily announced the new version, which will be released soon.

    in reply to: Add Multimedia & Video as post image #1161988

    there is one thing that is not nice: the post-navigation thumbnails are replaced too – and that has to be avoided.
    Hard to style in the right manner.
    Maybe a short question to the plugin author could solve that issue.

Viewing 30 posts - 6,061 through 6,090 (of 11,794 total)