Forum Replies Created
-
AuthorPosts
-
Ishmael,
Hmmm… So, to the original functions.php (v4.7.6.3), I added your all of your code at the bottom of the functions.php file (Meaning I DID NOT put the code in from the January 25, 2021 at 2:21 pm post).
Before overwriting the old functions.php with the new one with your code, I flushed the GoDaddy cache, then I flushed the Permalinks by clicking on “Save Changes” in the Permalinks Setting (which gave me this notice: “Permalink structure updated.”). [ I tried both remove the “portfolio-item” then saving and leaving it in there and saving—no difference ].
Then I did the “Visit Site” from the Dashboard and it gave me this message: “There has been a critical error on this website. Learn more about debugging in WordPress.” (It ‘froze’ the site and Dashboard was it was no longer working). [ However, I was doing all this via CyberDuck, so I just replaced it with the original functions.php and everything was fine [.
[ Note: I did put a “closing bracket” ( “}” ) in an additional line at the bottom and it still broke the site. ]
Can you tell me what I am doing wrong?
Thanks for ALL your help on this!
Mark Besh
Visual Impact SystemsIsmael,
So, do you want me to ADD the following code to what I already have? (or instead of?)
<?php
/**
* Remove the slug from published post permalinks. Only affect our custom post type, though.
*/
function gp_remove_cpt_slug( $post_link, $post ) {if ( ‘race’ === $post->post_type && ‘publish’ === $post->post_status ) {
$post_link = str_replace( ‘/’ . $post->post_type . ‘/’, ‘/’, $post_link );
}return $post_link;
}
add_filter( ‘post_type_link’, ‘gp_remove_cpt_slug’, 10, 2 );If you want me to ADD it, where do you want me to add it? Before or after?
Mark Besh
Visual Impact SystemsIsmael,
Hmmm… It doesn’t seem to be working:
I added it to the bottom of the “functions.php” file:
. . . . . ./*
* register custom functions that are not related to the framework but necessary for the theme to run
*/require_once( ‘functions-enfold.php’);
add_filter( ‘post_type_link’, ‘ava_remove_custom_slug’, 9999, 3 );
function ava_remove_custom_slug( $post_link, $post, $leavename ) {
if ( ‘portfolio’ != $post->post_type || ‘publish’ != $post->post_status ) {
return $post_link;
}$post_link = str_replace( ‘/’ . $post->post_type . ‘/’, ‘/’, $post_link );
return $post_link;
}Any idea why it’s not working?
[ Question: I noticed there is a “functions-enfold.php” Should I have put it in there? ]Thanks for your help on this.
Mark Besh
Visual Impact SystemsThat was the only change? Changing it to large? Because I need it to look the same on the homepage testimonials as well
January 21, 2021 at 7:46 pm in reply to: Icon box background color (not icon entire square) #1274515We had to hurry and delete this because it isn’t what we anted. There are multiple icon boxes on the website, this turns them ALL yellow. I am trying to figure out how to just turn the ones on the resources page a different color. This was mentioned above. Not site-wide. Page specific (ID)
What I’m trying to do:
When hovering over main header text items want them to turn the enfold blue we have set:
—instead of the blue line on active we want the entire square blue, does that make sense? Like the button backgrounds in the themeWhen hovering over sub menu headers want them to highlight blue as well but not have that text underline they do now
—Not sure how else to explain this. Can’t get rid of the underline and want the words highlighted blueHere you are sorry
January 11, 2021 at 7:26 pm in reply to: Blog Posts section lists portfolio item category + page title #1271682WORKED thank you
January 11, 2021 at 7:24 pm in reply to: Icon box background color (not icon entire square) #1271681Here you go
Sorry about that
Rikard,
Hmmm… Y’all helped us remove them from our company site we did with Angular in 2013:
https://visualimpactsystems.com/
(I think you had us put something in a .php file?)Mark Besh
Visual Impact SystemsHere you are!
Putting this in quick css:
#av-layout-grid-1 .iconbox_content {
background: #444;
}does nothing. I think it needs to be directed to the specific page no?
January 7, 2021 at 5:51 pm in reply to: Blog Posts section lists portfolio item category + page title #1270921Don’t think that worked
Thank you!
Here ya go!
January 7, 2021 at 2:59 am in reply to: Blog Posts section lists portfolio item category + page title #1270737Lovely! Last thing, same sections. There’s a small horizontal colored line below the titles. Can we either make that a different color or remove it all-together?
Doesn’t seem to be working. You can check the homepage yourself if you’d like. It’s at the bottom (has taken a couple hours to update sometimes because of cache purging).
Sadly this did not solve the problem. Is there something wrong with your code maybe? Could you take a look please? Provided a login privately.
SO this is what you all told me to add along the way as I have had other problems. Is any of this messing it up (before I add your new code)
#top .container_wrap {
border: none;
}.postid-3727 #av-layout-grid-1 .iconbox_content {
background: #444;
}@media only screen and (max-width: 767px){
.avia-builder-el-18 article{
margin:30px 0px!important;
}.avia-builder-el-33 article{
margin:30px 0px!important;
}}#top .read-more-link .more-link {
width: 140px;
height: 40px;
text-align: center;
line-height: 38px;
background-color: #469cd9;
color: #ffffff;
border-color: #247ab7;
border-radius: 3px;
}h3.slide-entry-title.entry-title a{
font-size:30px!important;
}Okay looks great! Still see a serious spacing problem with all these grid layouts. I made a ticket here:
Sadly I’m not sure if it’s this new code or what but it has messed up the spacing with the button on the homepage.
If you check the home page and scroll down to news and updates, you’ll see the spacing is broken. Is this the button? Or could it be the other code you all gave me when I mentioned the portfolio and blog items were not spaced correctly on mobile…You can also see the sizing issue at the second link provided when on mobile…
https://kriesi.at/support/topic/blog-posts-mobile-spacing-is-fa-too-close/
Mike,
Thanks for trying, but it is doing all the same things.
Do you think upgrading to 4.1 would help? (It is running 4.0 right now). If so, can you tell/show me how to “manually” upgrade it, since in the theme details area the “upgrade to new version” is not showing.
Thanks,
MArk Besh
Visual Impact SystemsMike,
Here’s what I am seeing…
http://visualimpactsystems.com/FOTB-Desktop.png
http://visualimpactsystems.com/FOTB-Tablet.png
http://visualimpactsystems.com/FOTB-Phone-Landscape.pngThe white ‘space’ on Desktop is a thin white line. The white space on Tablet is pretty large. The ‘landscape’ view on the phone shows only 1/2 of the photo.
Thanks for your help,
Mark Besh
Visual Impact Systems- This reply was modified 4 years ago by mbesh.
Mike,
Thanks for the response.Your CSS definitely fixed the loading of the pics, however, now there is some white space below the pic in its ‘frame’ (a fine ‘line’ in Desktop view, an lot of white space in portrait Tablet view, a small amount of white space in landscape Tablet view, a little bit of white space in portrait Phone view, and it only shows the top 1/2 of the pic in landscape Phone view). [ You can see this by resizing the width of the browser ].
http://fruitsofthebeatitudes.org/
Any ideas on how to have the ‘frame’ properly resize to the pic? (It used to work just fine in WP 4.9.2)
Thanks for your time,
Mark Besh
Visual Impact Systems- This reply was modified 4 years, 1 month ago by mbesh.
This worked thank you!
Yes, it shows a link, which is ugly and outdated. Why can’t it be a button? That’s what I’m asking. Since it is a built in grid I can;t add my own buttons externally to the design it won’t format properly.
Worked, sorry about that.
Life save, thank you!
Quick CSS? I see “custom CSS” in the advanced tab under developer settings. Are you referring to somewhere different?
-
AuthorPosts