Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customization and Where the Hidden Things Are #5

Open
polyinnovator opened this issue Nov 10, 2020 · 7 comments
Open

Customization and Where the Hidden Things Are #5

polyinnovator opened this issue Nov 10, 2020 · 7 comments

Comments

@polyinnovator
Copy link

Let's start out by saying it is a well done theme. Out of all the repositories on github... ALL of them, it is this one I chose.

I am frustrated because I am learning to code once again (4th or 5th time in my life), in order to modify this theme. I can't afford the little amount of developers on the market, and considering how unique ghost is I don't know if generic devs can.

So I am doing it myself, I already modified all of the colors, which took two days to do (which is ridiculous). However that comes with the territory. I managed to modify the footer to suit my needs as well.

Leaving the two most important tasks: The homepage and menu.

I have a LOT of content, and so a drow down menu is needed.

For some reason this text shows up in most pages, and I can't find it in any file.
image

Also for some reason that menu changed. It used to be a list of tags.

What I am trying to do is make the home page a static page from the Post-page taxonomy. I actually managed to do it. HOWEVER it broke the formatting, and I lost all of the blog post listings for some reason. So it was JUST the page content, and nothing else besides that weird "we help you..." text and nav menu.

I would really like some help, as I got to get this site up by the end of the week. Cheers

@polyinnovator
Copy link
Author

@StanGirard
Copy link
Owner

Hello @polyinnovator, and thanks for your interest in my theme. However, it is a personal modification of https://github.com/godofredoninja/Mapache.

You should check its repository. Best of luck 👍

@StanGirard
Copy link
Owner

And for the dropdown -> This is not supported with ghost for the time.

@polyinnovator
Copy link
Author

polyinnovator commented Nov 10, 2020

I already have checked mapache, its on my list of themes I liked haha. Like I said I went ALL of the repositories on here :)

The drop down is supported if we can get it to work, here is an example of a ghost site doing it.

  • Toggle drop down menu code snippet

    AdvisorySG/ghost-advisory-theme

    Javascript

    <script>
    /* an experimental widget that rewrites h1s into toggle dropdowns */
    
    $(function () {
        var isHiding = {};
    
        $(".gh-content > h1").each(function () {
            $(this).addClass("h1-toggle");
        });
    
        $(".h1-toggle").each(function () {
            var $header = $(this);
            var headerId = $header.attr("id");
    
            function hideHeader() {
                $header.addClass("h1-toggle-hide");
                $header.removeClass("h1-toggle-show");
                $header.nextUntil("h1").hide();
    
                $("#" + headerId + " > i").remove();
                $header.prepend('<i class="fas fa-chevron-up h1-toggle-icon"></i>');
            }
    
            function showHeader() {
                $header.addClass("h1-toggle-show");
                $header.removeClass("h1-toggle-hide");
                $header.nextUntil("h1").show();
    
                $("#" + headerId + " > i").remove();
                $header.prepend(
                    '<i class="fas fa-chevron-down h1-toggle-icon"></i>'
                );
            }
    
            // set headers to be hidden by default,
            // unless the header has been set to show...
            if ($header.hasClass("h1-toggle-show")) {
                showHeader($header);
                isHiding[headerId] = false;
            } else {
                hideHeader($header);
                isHiding[headerId] = true;
            }
            // ...and to toggle between hidden/shown when clicked.
            $header.click(function () {
                if (isHiding[headerId]) showHeader();
                else hideHeader();
                isHiding[headerId] = !isHiding[headerId];
            });
        });
    });
    </script>
    

    https://advisory.sg/category/accommodation-food-service/

    CSS

    https://github.com/AdvisorySG/ghost-advisory-theme/blob/master/assets/css/toggledropdown.css

    .h1-toggle {
        cursor: default;
        text-decoration: none;
    }
    
    .h1-toggle:hover {
        cursor: pointer;
        text-decoration: underline;
    }
    
    .h1-toggle-icon {
        padding: 0 0.25em 0 0.25em;
    }
    

image

@polyinnovator
Copy link
Author

Hey so, ignoring those issues, can you help me with this one? The homepage has this text "We help you in your evolution", as well as a secondary menu (which was a list of tags before) which is default to the theme but I looked EVERYWHERE ctrl-f in each of the .hbs files and most partials yet I couldn't find where it was stored to change it.

Shows up on various other pages like specific tags, but I can't get rid of it or change it.

@StanGirard
Copy link
Owner

Hello @polyinnovator, look at

<h1 class="ne-t u-underline u-md-fontSize30">We help you in your evolution</h1>
for the We help you in your evolution :)

I'd like to be able to help you more but I buried under loads of work. I don't even have time to work on my main open-source project -> https://github.com/StanGirard/seo-audits-toolkit :(

@polyinnovator
Copy link
Author

Omg thank you so much! That was bothering me really bad, and I someone missed that widget as I did look in that folder before. Must have been late.

One last thing before you wrap up this issue, quick question what sort of changes did you make from Mapache?

That SEO app looks fantastic btw!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants