Closed. This question is off-topic. It is not currently accepting answers.admin管理员组文章数量:1312708
Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this question<?php
global $align;
global $wpestate_options;
global $is_shortcode;
global $row_number_col;
$title = get_the_title();
$col_data = wpestate_return_unit_class($wpestate_no_listins_per_row,$wpestate_options['content_class'],$align,$is_shortcode,$row_number_col,$wpestate_property_unit_slider);
$link = esc_url( get_permalink() );
$main_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'listing_full_slider');
?>
<div class="<?php echo esc_html($col_data['col_class']);?> listing_wrapper "
data-org="<?php echo esc_attr($col_data['col_org']);?>"
data-main-title="<?php echo esc_attr($title);?>"
data-main-modal="<?php echo esc_attr($main_image[1]); ?>"
data-modal-link="<?php echo esc_attr($link);?>"
data-listid="<?php echo intval($post->ID);?>" >
<div class="property_listing property_card_default <?php echo wpestate_interior_classes($wpestate_uset_unit); ?> "
data-link="<?php if( $wpestate_property_unit_slider==0){ echo esc_url($link);}?>">
<?php if ($wpestate_uset_unit==1) {
wpestate_build_unit_custom_structure($wpestate_custom_unit_structure,$post->ID,$wpestate_property_unit_slider);
} else { ?>
<div class="listing-unit-img-wrapper">
<div class="prop_new_details">
<div class="prop_new_details_back"></div>
<?php get_template_part('templates/property_cards_templates/property_card_media_details');?>
<?php get_template_part('templates/property_cards_templates/property_card_location');?>
<div class="featured_gradient"></div>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_slider');?>
<?php get_template_part('templates/property_cards_templates/property_card_tags'); ?>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_title'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_price'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_content'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_details_default'); ?>
<div class="property_location">
<?php get_template_part('templates/property_cards_templates/property_card_agent_details_default'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_actions_type_default'); ?>
</div>
<?php
}// end if custom structure
?>
</div>
</div>
I'm using wp residence theme and want to display title above the image slider
Closed. This question is off-topic. It is not currently accepting answers.Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or another appropriate Stack Exchange network site. Third-party plugins and themes are off-topic for this site; they are better asked about at their developers' support routes.
Closed 4 years ago.
Improve this question<?php
global $align;
global $wpestate_options;
global $is_shortcode;
global $row_number_col;
$title = get_the_title();
$col_data = wpestate_return_unit_class($wpestate_no_listins_per_row,$wpestate_options['content_class'],$align,$is_shortcode,$row_number_col,$wpestate_property_unit_slider);
$link = esc_url( get_permalink() );
$main_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'listing_full_slider');
?>
<div class="<?php echo esc_html($col_data['col_class']);?> listing_wrapper "
data-org="<?php echo esc_attr($col_data['col_org']);?>"
data-main-title="<?php echo esc_attr($title);?>"
data-main-modal="<?php echo esc_attr($main_image[1]); ?>"
data-modal-link="<?php echo esc_attr($link);?>"
data-listid="<?php echo intval($post->ID);?>" >
<div class="property_listing property_card_default <?php echo wpestate_interior_classes($wpestate_uset_unit); ?> "
data-link="<?php if( $wpestate_property_unit_slider==0){ echo esc_url($link);}?>">
<?php if ($wpestate_uset_unit==1) {
wpestate_build_unit_custom_structure($wpestate_custom_unit_structure,$post->ID,$wpestate_property_unit_slider);
} else { ?>
<div class="listing-unit-img-wrapper">
<div class="prop_new_details">
<div class="prop_new_details_back"></div>
<?php get_template_part('templates/property_cards_templates/property_card_media_details');?>
<?php get_template_part('templates/property_cards_templates/property_card_location');?>
<div class="featured_gradient"></div>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_slider');?>
<?php get_template_part('templates/property_cards_templates/property_card_tags'); ?>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_title'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_price'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_content'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_details_default'); ?>
<div class="property_location">
<?php get_template_part('templates/property_cards_templates/property_card_agent_details_default'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_actions_type_default'); ?>
</div>
<?php
}// end if custom structure
?>
</div>
</div>
I'm using wp residence theme and want to display title above the image slider
Share Improve this question edited Dec 30, 2020 at 0:45 Rup 4,4004 gold badges29 silver badges29 bronze badges asked Dec 29, 2020 at 17:33 Parth bajajParth bajaj 12 bronze badges 1- 1 What did you try to achieve this and what happened?.. share some code in order to get some help. – Q Studio Commented Dec 29, 2020 at 17:41
1 Answer
Reset to default 1You just have to swap two of the template parts. You want to take <?php get_template_part('templates/property_cards_templates/property_card_title'); ?>
line and move it above the template include line that adds the slider. I have no idea what this will do to your formatting but if you're this deep into the template then you should be pretty comfortable with CSS.
<?php
global $align;
global $wpestate_options;
global $is_shortcode;
global $row_number_col;
$title = get_the_title();
$col_data = wpestate_return_unit_class($wpestate_no_listins_per_row,$wpestate_options['content_class'],$align,$is_shortcode,$row_number_col,$wpestate_property_unit_slider);
$link = esc_url( get_permalink() );
$main_image = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'listing_full_slider');
?>
<div class="<?php echo esc_html($col_data['col_class']);?> listing_wrapper "
data-org="<?php echo esc_attr($col_data['col_org']);?>"
data-main-title="<?php echo esc_attr($title);?>"
data-main-modal="<?php echo esc_attr($main_image[1]); ?>"
data-modal-link="<?php echo esc_attr($link);?>"
data-listid="<?php echo intval($post->ID);?>" >
<div class="property_listing property_card_default <?php echo wpestate_interior_classes($wpestate_uset_unit); ?> "
data-link="<?php if( $wpestate_property_unit_slider==0){ echo esc_url($link);}?>">
<?php if( $wpestate_uset_unit==1 ){ wpestate_build_unit_custom_structure($wpestate_custom_unit_structure,$post->ID,$wpestate_property_unit_slider);
} else{ ?>
<div class="listing-unit-img-wrapper">
<div class="prop_new_details">
<div class="prop_new_details_back"></div>
<?php get_template_part('templates/property_cards_templates/property_card_media_details');?>
<?php get_template_part('templates/property_cards_templates/property_card_location');?>
<div class="featured_gradient"></div>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_title'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_slider');?>
<?php get_template_part('templates/property_cards_templates/property_card_tags'); ?>
</div>
<?php get_template_part('templates/property_cards_templates/property_card_price'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_content'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_details_default'); ?>
<div class="property_location">
<?php get_template_part('templates/property_cards_templates/property_card_agent_details_default'); ?>
<?php get_template_part('templates/property_cards_templates/property_card_actions_type_default'); ?>
</div>
<?php
}// end if custom structure
?>
</div>
</div>
本文标签: wp adminI39m using wp residence theme and want to display titile above the slider
版权声明:本文标题:wp admin - I'm using wp residence theme and want to display titile above the slider 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741881883a2402794.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论