ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers

    IT Discussion
    wordpress web design google+ flawless theme goodlayers
    4
    20
    1.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      If you are working with Goodlayer's Flawless for Wordpress you probably want to pull out Google+ from your social media icons because it doesn't exist any longer. Or you might want to edit other icons. Doing so is completely not obvious.

      What you need to do is search for this file in your theme gdlr-social-icon.php. In there there are three references to any given social media icon. Search for the three spots where Google+ (or whatever icon you want to remove is) and delete them. That's it.

      I found that editing this file in the WP editor would not work, and had to use vi directly from the OS. Be sure to back up any file before making changes, of course.

      1 Reply Last reply Reply Quote 0
      • ObsolesceO
        Obsolesce
        last edited by Obsolesce

        Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

        scottalanmillerS 1 Reply Last reply Reply Quote 1
        • scottalanmillerS
          scottalanmiller @Obsolesce
          last edited by

          @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

          Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

          YOu are using CSS to detect the PHP and disable it? That would be really complex.

          ObsolesceO 1 Reply Last reply Reply Quote 0
          • ObsolesceO
            Obsolesce @scottalanmiller
            last edited by

            @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

            @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

            Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

            YOu are using CSS to detect the PHP and disable it? That would be really complex.

            No, it doesn't work that way.

            But it's extremely easy and is the best way to do it.

            I'll post more soon, putting kids to bed / bedtime routine.

            1 1 Reply Last reply Reply Quote 0
            • 1
              1337 @Obsolesce
              last edited by 1337

              @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

              @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

              @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

              Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

              YOu are using CSS to detect the PHP and disable it? That would be really complex.

              No, it doesn't work that way.

              But it's extremely easy and is the best way to do it.

              I'll post more soon, putting kids to bed / bedtime routine.

              I'm with @Obsolesce on this one. Better to hide elements by adding CSS rules instead of changing the code. That way it will survive updates.

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce
                last edited by Obsolesce

                Here's an example with my Wife's blog, where I use custom CSS to heavily alter the look of the site:

                Removing the widget titles:

                .widget-title {
                	display:none;
                }
                

                In your example, you'd find which element displays the the icon, and not display it. I mean it completely depends on the theme and how it uses CSS, but that's generally how you'd go about it. I've not used that theme before. Do you have an example I can look at?

                Here's where you do it in WP:

                47bbc0f9-4687-4bd2-85ab-10a5a0157b35-image.png

                1 1 Reply Last reply Reply Quote 1
                • 1
                  1337
                  last edited by

                  For instance if you add display: none to any element it isn't visible anymore.

                  So you have to find the class/id of the thing you want to hide first. Make a rule for that where you hide the element and the work is done.

                  For instance if I wanted to hide the ML logo on this forum I'll add this css:

                  .forum-logo {
                     display: none;
                  }
                  
                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                  • 1
                    1337 @Obsolesce
                    last edited by

                    @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                    Here's an example with my Wife's blog, where I use custom CSS to heavily alter the look of the site:

                    Removing the widget titles:

                    .widget-title {
                    	display:none;
                    }
                    

                    In your example, you'd find which element displays the the icon, and not display it. I mean it completely depends on the theme and how it uses CSS, but that's generally how you'd go about it. I've not used that theme before. Do you have an example I can look at?

                    Haha, you beat me to it.

                    1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @1337
                      last edited by

                      @Pete-S said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                      So you have to find the class/id of the thing you want to hide first. Make a rule for that where you hide the element and the work is done.

                      there isn't one in this case without editing the PHP, taking us back to the beginning of why I did it this way 😉

                      1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @1337
                        last edited by

                        @Pete-S said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                        @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                        @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                        @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                        Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

                        YOu are using CSS to detect the PHP and disable it? That would be really complex.

                        No, it doesn't work that way.

                        But it's extremely easy and is the best way to do it.

                        I'll post more soon, putting kids to bed / bedtime routine.

                        I'm with @Obsolesce on this one. Better to hide elements by adding CSS rules instead of changing the code. That way it will survive updates.

                        I would if it had an element. It's part of a block that has one, but I don't want to hide the rest.

                        ObsolesceO 1 2 Replies Last reply Reply Quote 0
                        • ObsolesceO
                          Obsolesce @scottalanmiller
                          last edited by Obsolesce

                          @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                          @Pete-S said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                          @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                          @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                          @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                          Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

                          YOu are using CSS to detect the PHP and disable it? That would be really complex.

                          No, it doesn't work that way.

                          But it's extremely easy and is the best way to do it.

                          I'll post more soon, putting kids to bed / bedtime routine.

                          I'm with @Obsolesce on this one. Better to hide elements by adding CSS rules instead of changing the code. That way it will survive updates.

                          I would if it had an element. It's part of a block that has one, but I don't want to hide the rest.

                          I guess we'll never know. I don't even see the G+ icon on their preview...

                          9fca2cd1-98f1-442f-9b74-0b02aa6c66f7-image.png

                          But yeah, if there is no way to target or single out that icon via CSS, and they don't provide a way to hide or show icons in the Theme settings, then you are forced into performing bad practices in editing the php files directly.

                          1 ObsolesceO 2 Replies Last reply Reply Quote 0
                          • 1
                            1337 @Obsolesce
                            last edited by 1337

                            @Obsolesce Where did you find the preview? Link?
                            https://demo.goodlayers.com/flawless/

                            1 Reply Last reply Reply Quote 0
                            • ObsolesceO
                              Obsolesce @Obsolesce
                              last edited by Obsolesce

                              @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              @Pete-S said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                              Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

                              YOu are using CSS to detect the PHP and disable it? That would be really complex.

                              No, it doesn't work that way.

                              But it's extremely easy and is the best way to do it.

                              I'll post more soon, putting kids to bed / bedtime routine.

                              I'm with @Obsolesce on this one. Better to hide elements by adding CSS rules instead of changing the code. That way it will survive updates.

                              I would if it had an element. It's part of a block that has one, but I don't want to hide the rest.

                              I guess we'll never know. I don't even see the G+ icon on their preview...

                              9fca2cd1-98f1-442f-9b74-0b02aa6c66f7-image.png

                              But yeah, if there is no way to target or single out that icon via CSS, and they don't provide a way to hide or show icons in the Theme settings, then you are forced into performing bad practices in editing the php files directly.

                              Yeah, they have it all in the same element. And if the settings don't present options to show/hide specific social media icons, then you have to do what you have to do.

                              97191b5d-0702-4dbe-a5a0-ccf22be96dfa-image.png

                              scottalanmillerS 1 Reply Last reply Reply Quote 0
                              • scottalanmillerS
                                scottalanmiller @Obsolesce
                                last edited by

                                @Obsolesce I couldn't find any settings for them at all. Its' a terrible template to work with.

                                ObsolesceO 1 Reply Last reply Reply Quote 0
                                • 1
                                  1337 @scottalanmiller
                                  last edited by

                                  @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                  @Pete-S said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                  @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                  @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                  @Obsolesce said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                  Doesn't editing PHP files directly get overwritten when themes are updated? I found that the best way to customize or edit themes is to add custom CSS in the appropriate custom CSS location.

                                  YOu are using CSS to detect the PHP and disable it? That would be really complex.

                                  No, it doesn't work that way.

                                  But it's extremely easy and is the best way to do it.

                                  I'll post more soon, putting kids to bed / bedtime routine.

                                  I'm with @Obsolesce on this one. Better to hide elements by adding CSS rules instead of changing the code. That way it will survive updates.

                                  I would if it had an element. It's part of a block that has one, but I don't want to hide the rest.

                                  Yes, if it's like the demo I see the problem. The people who made the template should have added a different id to each social media icon so you could style them independently.

                                  1 Reply Last reply Reply Quote 1
                                  • ObsolesceO
                                    Obsolesce @scottalanmiller
                                    last edited by

                                    @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                    @Obsolesce I couldn't find any settings for them at all. Its' a terrible template to work with.

                                    Here's those options with the theme I like to use:
                                    47e1dca3-7529-4dae-9265-5f4cf4f56d49-image.png

                                    Extensive list:
                                    b755cc5d-5602-4d3c-b986-9822158f313a-image.png

                                    scottalanmillerS 1 Reply Last reply Reply Quote 0
                                    • scottalanmillerS
                                      scottalanmiller @Obsolesce
                                      last edited by

                                      @Obsolesce where did you find that?

                                      ObsolesceO 1 Reply Last reply Reply Quote 0
                                      • IRJI
                                        IRJ
                                        last edited by

                                        Maybe just dump that bad theme all together.

                                        scottalanmillerS 1 Reply Last reply Reply Quote -1
                                        • ObsolesceO
                                          Obsolesce @scottalanmiller
                                          last edited by Obsolesce

                                          @scottalanmiller said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                          @Obsolesce where did you find that?

                                          This is the one I use for my blog:
                                          https://www.cryoutcreations.eu/wordpress-themes/nirvana

                                          But I think most of their themes all have the same options.

                                          For my wife's blog, I heavily customized the Twenty-Seventeen theme.

                                          1 Reply Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @IRJ
                                            last edited by

                                            @IRJ said in Remove Social Media Icons like Google+ from Flawless Wordpress Theme by Goodlayers:

                                            Maybe just dump that bad theme all together.

                                            I'd love to, but I just host the site and help out a little.

                                            1 Reply Last reply Reply Quote 0
                                            • 1 / 1
                                            • First post
                                              Last post