Forum Replies Created
-
AuthorPosts
-
Angelo
MemberI found a way like this
add_filter( 'wp_nav_menu_items', 'my_custom_menu_item'); function my_custom_menu_item($items) { if(is_user_logged_in()) { global $current_user; $items .= sprintf( '<li class="menu-item"><a href="%s">%s</a></li>', get_author_posts_url( $current_user->ID ), 'My Posts' ); } return $items; }
Angelo
MemberThis reply has been marked as private.Angelo
MemberI dont Know how to do that Brad 🙁
Angelo
MemberHere is the image exemple
https://drive.google.com/file/d/1NyL47ooB1wCcn2gy6NFdbYmtfIlZfAmW/viewAngelo
MemberFinally I did this, Is Working, But I Dont Know if is relly correct and clean code
https://github.com/klish09/author-archive-linkThe final result That i want is this
https://drive.google.com/file/d/1SpK9XFiiZ8R8bYX8PREJbq8rSlo-qWon/view"Angelo
MemberHere is The Funtion
// Filter the property details array. add_filter( 'agentpress_property_details', 'agentpress_property_details_filter' ); function agentpress_property_details_filter( $details ) { $details['col1'] = array( __( 'Precio:', 'agentpress' ) => '_listing_price', __( 'Embalaje:', 'agentpress' ) => '_listing_address', __( 'Contenido:', 'agentpress' ) => '_listing_city', // __( 'Opcion04:', 'agentpress' ) => '_listing_state', // __( 'Opcion05:', 'agentpress' ) => '_listing_zip', ); $details['col2'] = array( __( 'Estado:', 'agentpress' ) => '_listing_mls', __( 'Entrega:', 'agentpress' ) => '_listing_sqft', __( 'Otro Detalle:', 'agentpress' ) => '_listing_bedrooms', __( 'Opcion09:', 'agentpress' ) => '_listing_bathrooms', __( 'Opcion10:', 'agentpress' ) => '_listing_basement', ); return $details; }
Angelo
MemberHey Gary, according to what you have indicated, if I wanted to do the same with the footer ...it would be like this?
remove_action( 'genesis_footer', 'genesis_do_footer' ); add_action( 'genesis_footer', 'angelo_do_footer' ); function angelo_do_footer() { include __DIR__ . '/myfooter.php'; }
Is this correct ?
I just did it, it Woks FineAngelo
MemberYes Gary, I did it Like This:
// Remove site header elements. remove_action( 'genesis_header', 'genesis_header_markup_open', 5 ); remove_action( 'genesis_header', 'genesis_do_header' ); remove_action( 'genesis_header', 'genesis_header_markup_close', 15 ); function CustomHeader() { include("cabecera.php"); }; add_action('genesis_header', 'CustomHeader');
I must confess that I'm just an amateur, I'm not a programmer. That's why I ask, because I'd like to do it the right way.
Thank you very much, I will do as you indicateAngelo
MemberThanks Gary,
I will take your advice.
I found lib/customize.php and lib/theme-defaults.php but markup.php and schema funtions anywhere
I will keep tryingAngelo
Memberchange your-theme-landing for your theme landing class, then Place it at the end of your stylesheet
.your-theme-landing .wrap {
max-width: 100%;
}
.your-theme-landing .wrap .entry{
margin: 1%;
}Angelo
MemberWell Thats Strange..
My advice
1) Deactive all your cache plugins if you have it.
2)Clean your browswer cache
3) Clean the cache from your server if you have it
4) Try to doit again using ftp or cpanel.Your code maight be like this when you update your css
/* # Copy from here
--------------------------------------------- */
.footer-widgets {
background-color: #ffffff;
border-top: 2px solid #dddddd;
}.widet-title {
font-size: 30px;
}.footer-widgets {
color: #666;
font-size: 20px;
}.a {
color: #60C9C9;
}.sidebar .enews-widget {
background-color: #556270;
}
/* # end here
--------------------------------------------- */Hiker, I m am not a profestional, im just tryng to helpyou, if you problem continue you can ask to Brad Dalton, he will help you I know
See Brad´s Profile Here
Angelo
MemberCan you access to your css file with ftp or cpanel?
Angelo
MemberThe css code that you are showing in the exemple is wrong
Angelo
MemberI think was the server , they have some cahe tools ..Thanks Brad
Angelo
MemberI did it Brad thanks .I also change in the crome fix ...I dont Know what is really that but it works 🙂
/* Chrome fix */
body > div {
font-size: 2.2rem;
}body {
background-color: #f5f5f5;
color: #333;
font-family: Lato, sans-serif;
font-size: 22px;
font-size: 2.2rem;
font-weight: 300;
line-height: 1.625;
margin: 0;
}Angelo
MemberNo, is not working, and is not the cache also... Any idea?
Angelo
MemberI just want to display the font size in 22px
Angelo
MemberHi brad, there is 2 lines. font-size: 18px and font size : 1.8rem. I have chance the first one for 24px and doesnt work... Do i need to chance the 1.8rem or something else? Is posible to do this with some funtion?
Angelo
Member1)upgrade your framework to the last vertion ..to do this check your actualization in your wp admin panel.. . . 2)Open stylesheet and functions.php file and make a back up . 3) once you have your backup . Dowload a fresh theme from your StudioPress account to your computer , unzip the theme and go to the functions.php file. Copy all content there and replace the old one for the newone ...do the same with yourstytlesheet...Please do all this via ftp and not via the editor from your admin pnael in yor wordpress ...becouse if something get wrong you can always go back using your backup .
Angelo
MemberYes you are right, that code would go in function.php, But it doesn´t work for me , when i drop that code into the functions.php file the result is Fatal Error - White Screen of Death!
What i need is is to change the text in the property detailsI am From Costa Rica and I need those details in Spanish for the visitors
Exemple
(Property Details=Detalles de la Propiedad)
(Price =Precio)
(Adress=Direccion)
(City=Ciudad)
(State=Estado...... -
AuthorPosts