hamid
Forum Replies Created
-
hi guys
My problem is solved,
I deleted the new version of xampp and installed version 7.4.29 / PHP 7.4.29 and the problem with different sizes of WordPress images was solved.
this now , i can upload image ,
and media library default create five size (thumbnail,medium,large,and original size)- This reply was modified 2 years, 8 months ago by hamid.
thanks threadi
i checked , and error
The optional module, imagick, is not installed, or has been disabled.
Error The required module, gd, is not installed, or has been disabled.
Warning The optional module, intl, is not installed, or has been disabledI just installed wordpress,(right now)
And also I just installed xampp,(right now)why ,is not installed
error upload image
https://pasteboard.co/hoB2YsQgUaM9.jpgForum: Developing with WordPress
In reply to: how make input and image upload in metaboxno use plugin ,i am make without plugin.
Forum: Fixing WordPress
In reply to: multi section single.php wordpresshi @anant101289
no no ,it is no tab ,is other page,
it is four page that to attachment original page.Forum: Fixing WordPress
In reply to: multi section single.php wordpressno anyone help me
Forum: Fixing WordPress
In reply to: multi section single.php wordpressthanks @anant101289
I’m not good speak English
but i can’t solve with js
because i need new page with name cast or reviews ,
because left column in image in page cast is differentForum: Fixing WordPress
In reply to: how add button (add media) in metabox (custom field)Forum: Developing with WordPress
In reply to: why dont work $hastr varable in inside construct if in phphi @bcworkz,
thanks for you macth
is solved. i problem solved. very very gladForum: Developing with WordPress
In reply to: why dont work $hastr varable in inside construct if in phphi @bcworkz
thank for you ,
first say i dont good speak english.i have custom nav wordpress tags .and problem above solved
but new problem , thanks for you , if help me.
i have problem tag a(link) li parent,getting inside tag submenu.<?php /** * Nav Menu API: menu haazworld class * * @package WordPress * @subpackage Nav_Menus * @since 4.6.0 */ /** * Core class used to implement an HTML list of nav menu items. * * @since 3.0.0 * * @see Walker */ class Walker_Menu_Primary extends Walker { /** * What the class handles. * * @since 3.0.0 * @var string * * @see Walker::$tree_type */ public $tree_type = array( 'post_type', 'taxonomy', 'custom' ); /** * Database fields to use. * * @since 3.0.0 * @todo Decouple this. * @var array * * @see Walker::$db_fields */ public $db_fields = array( 'parent' => 'menu_item_parent', 'id' => 'db_id', ); /** * Starts the list before the elements are added. * * @since 3.0.0 * * @see Walker::start_lvl() * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. */ public function start_lvl( &$output, $depth = 0, $args = array() ) { if ( isset( $args->item_spacing ) && 'discard' === $args->item_spacing ) { $t = ''; $n = ''; } else { $t = "\t"; $n = "\n"; } } /** * Ends the list of after the elements are added. * * @since 3.0.0 * * @see Walker::end_lvl() * * @param string $output Used to append additional content (passed by reference). * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. */ public function end_lvl( &$output, $depth = 0, $args = array() ) { } /** * Starts the element output. * * @since 3.0.0 * @since 4.4.0 The {@see 'nav_menu_item_args'} filter was added. * * @see Walker::start_el() * * @param string $output Used to append additional content (passed by reference). * @param WP_Post $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $id Current item ID. */ public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = 'menu-item-' . $item->ID; $classes[] = 'nav-cn-drop'; /** * Filters the arguments for a single nav menu item. * * @since 4.4.0 * * @param stdClass $args An object of wp_nav_menu() arguments. * @param WP_Post $item Menu item data object. * @param int $depth Depth of menu item. Used for padding. */ $args = apply_filters( 'nav_menu_item_args', $args, $item, $depth ); /** * Filters the CSS classes applied to a menu item's list item element. * * @since 3.0.0 * @since 4.1.0 The <code>$depth</code> parameter was added. * * @param string[] $classes Array of the CSS classes that are applied to the menu item's <code><li></code> element. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth ) ); $class_names = $class_names ? ' class="' . esc_attr( $class_names ) . '"' : ''; /** * Filters the ID applied to a menu item's list item element. * * @since 3.0.1 * @since 4.1.0 The <code>$depth</code> parameter was added. * * @param string $menu_id The ID that is applied to the menu item's <code><li></code> element. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $id = apply_filters( 'nav_menu_item_id', 'menu-item-' . $item->ID, $item, $args, $depth ); $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; //$hastr=$item; //$ha_val=$item->menu_item_parent; //var_dump($hastr);//0 55 65 48 25 //var_dump($hastr); if($item->menu_item_parent === '0'){ //global $item; //$hastr; //var_dump($hastr);// dont work and return 0 0 //var_dump($item); //$ha_int=$item->db_id; $output .= $indent . '<li' . $id . $class_names . '>'; //var_dump($ha_int); } if ( is_array( $classes ) && in_array("menu-item-has-children", $classes) && 0 === $depth){ $output .="<div class='nav-submenu'>"; } if( 1 === $depth){ $output .="<div class='nav'>"; } $atts = array(); $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : ''; $atts['target'] = ! empty( $item->target ) ? $item->target : ''; if ( '_blank' === $item->target && empty( $item->xfn ) ) { $atts['rel'] = 'noopener noreferrer'; } else { $atts['rel'] = $item->xfn; } $atts['href'] = ! empty( $item->url ) ? $item->url : ''; $atts['aria-current'] = $item->current ? 'page' : ''; if ($item->menu_item_parent === '0') {$atts['class'] = 'nav-alink';} $atts = apply_filters( 'nav_menu_link_attributes', $atts, $item, $args, $depth ); $attributes = ''; foreach ( $atts as $attr => $value ) { if ( ! empty( $value ) ) { $value = ( 'href' === $attr ) ? esc_url( $value ) : esc_attr( $value ); $attributes .= ' ' . $attr . '="' . $value . '"'; } } $title = apply_filters( 'the_title', $item->title, $item->ID ); /** * Filters a menu item's title. * * @since 4.4.0 * * @param string $title The menu item's title. * @param WP_Post $item The current menu item. * @param stdClass $args An object of wp_nav_menu() arguments. * @param int $depth Depth of menu item. Used for padding. */ $title = apply_filters( 'nav_menu_item_title', $title, $item, $args, $depth ); $item_output = $args->before; $item_output .= '<a' . $attributes . '>'; $item_output .= $args->link_before . $title . $args->link_after; $item_output .= '</a>'; $item_output .= $args->after; $output .= apply_filters( 'Walker_Menu_Primary_start_el', $item_output, $item, $depth, $args ); } /** * Ends the element output, if needed. * * @since 3.0.0 * * @see Walker::end_el() * * @param string $output Used to append additional content (passed by reference). * @param WP_Post $item Page data object. Not used. * @param int $depth Depth of page. Not Used. * @param stdClass $args An object of wp_nav_menu() arguments. */ public function end_el( &$output, $item, $depth = 0, $args = array() ) { if( 1 === $depth){ $output .= "</div>"; } if ( is_array( $classes ) && in_array("menu-item-has-children", $classes)){ $output .= "</div>"; } if($item->menu_item_parent === '0'){ $output .= "</li>{$n}"; } } // Walker_Menu_Primary }
is link image problem
image problemForum: Fixing WordPress
In reply to: how find code in templateForum: Fixing WordPress
In reply to: how find code in templatein my country design template and lock and update butt not edit ??
Forum: Fixing WordPress
In reply to: how find code in templatehi @anevins
thanks ,butt i use What The File plugin and again cant find index or code example tag or function
Forum: Fixing WordPress
In reply to: how find code in template