Forum Replies Created
-
AuthorPosts
-
varshasalvi
MemberThank You Christoph. Does it mean that '//' these are causing an error in displaying the site in any way?
March 20, 2015 at 5:24 pm in reply to: How to View my blog on iphone/ipad without distortion #145057varshasalvi
MemberHello Julia,
Thank you for reply. Could guide me as to what changes i need to make to the media queries ? Is there a CSS document or anything which would help me to understand how I could make those changes ?
Also , could I completely remove the mobile responsiveness for my site?Thanks ,
Varshavarshasalvi
MemberYup . I dont really have enough knowledge of PHP and css but I will try .
was hoping for some tutorial. But I will give it a try.
Thanks!varshasalvi
MemberOh So that means I have to make my website unresponsive?
How can I do that ? Any tutorial or reference?
varshasalvi
MemberOh ok My apologies. Maybe I dint explain myself properly.
By 'Mobile Version' what I mean is what plugins like WPtouch offer .e.g.
https://wordpress.org/plugins/wptouch/screenshots/Instead i want it to look like this example:
http://www.designlovefest.comIf you see this website looks same on the desktop browser as on the phone.
Does it mean that this is mobile responsive or not mobile responsive.Sorry I am a little confused with the terminology here.
Thanksvarshasalvi
MemberI do not want to make the Responsive theme unresponsive.
I just want it to function like responsive like its supposed to but is not doing right now.varshasalvi
MemberIt is working now 🙂
Thank you Brad & Anita!
varshasalvi
MemberHi Anita,
Well still no luck:(I do not have caching plugin on neither do I have Photon activated.
I also tried putting the code in Stylesheet.css and removed it from the Custom CSS.I am not using the regenerate thumbnails plugin. Could you tell how that would make a change here?
Thanks!
varshasalvi
MemberHi Brad,
I used the firebug tool too! However when i put the code in the CSS file and refresh the browser ,code gets overwritten.
It just temporarily expands when change is made in the firebug window. but doesn't retain when the window is refreshed.
varshasalvi
MemberHi Brad,
Its not working on my browser .. I am using firefox. I also tried the !important command to override the CSS.
Still not working.Which browser did you test it on?
varshasalvi
MemberIs there anyway I can share the code ?
varshasalvi
MemberThank you for that analysis. Any idea on what could be going wrong? I dont know php programming well 🙁 Trying to debug this !
varshasalvi
MemberPerfect ! Thanks Brad.
I am facing one more issue though:(
I am using the same code for Portfolio CPT and its not working
add_action( 'genesis_after_loop', 'wpsites_hook_button', 25 );
function wpsites_hook_button() {
if ( is_post_type_archive('portfolio') ) {
echo'<div class="back-to-blog">';
echo'BACK TO BLOG';
echo'</div>';
}
}The error is that the page just goes blank when I update the functions.php file. Have no idea why this is happening.
varshasalvi
MemberI got it it to work . I do not not have a knowledge about php but I am learning as i go . I made a mistake in the loop
add_action( ‘genesis_after_loop’, ‘wpsites_hook_button’, 25 );
function wpsites_hook_button()
I changed button with back to blog.However, now its a button on the page and if I change the CSS to make it look like a link the css of other buttons on the page also changes.
Is there a way to avoid that ? I am thinking I will have to create like another custom(button/link or something)
Also, if I have to do the same thing for portfolio page , i have to just replace the conditional tag toif ( is_post_type_archive('portfolio') )
right?
varshasalvi
MemberI pasted the code in the functions.php folder of my current child theme which is 'Beautiful Pro'.
I did use Notepad++ to copy the code first
varshasalvi
MemberHi Brad,
I am using this code :
add_action( 'genesis_after_loop', 'wpsites_hook_back-to-blog', 25 );
function wpsites_hook_back-to-blog() {
if ( is_post_type_archive('art-gallery') ) {
echo'<div class="custom-back-to-blog">';
echo'BACK TO BLOG';
echo'</div>';
}
}
But it is giving me an error! I got this snippet from the link you provided above and changed the genesis-before-loop to after , changed the conditional tag and button class to back-to-blog class i created in CSS.Could you tell me where am I going wrong?
varshasalvi
MemberAlso how can i create the " Back to Portfolio link" ?
Is there a php/html code ? and where do i insert this code?Thanks!
varshasalvi
MemberThat would be great !!!
Thanks a lot Brad.varshasalvi
Memberoh never mind , i got it !
Sorry for that.
However i still have one question, can i make changes to the CSS file in your post to match my theme?
and could still elaborate onYou’ll also need to create a new admin-style.css file which goes inside a new folder named lib and include the icons folder from the Executive Pro theme in the same folder.
Thanks in advance !
varshasalvi
MemberThank you Brad,
But will this work for Beautiful pro theme?
Also,
you have mentioned this in your post :
You’ll need to create 3 new page templates using a text editor like Notepad++:
archive_portfolio.php
single_portfolio.php
taxonomy_portfolio_type.phpNext step is to paste all the functions.php code into your child themes functions.php file.
So do you mean create these separately and then just copy all the code from them and paste it in existing child theme's functions.php?
and what is this step for :
You’ll also need to create a new admin-style.css file which goes inside a new folder named lib and include the icons folder from the Executive Pro theme in the same folder.Thanks.
-
AuthorPosts